Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 91.84 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.397/1.397, allocations: 205.4 MB / 222.1 MB, free: 5.492 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005149/0.000515, allocations: 8 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2272, allocations: 47.59 MB / 326.5 MB, free: 1.559 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01315/0.2404, allocations: 12.04 MB / 338.5 MB, free: 7.523 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009672/0.2501, allocations: 4.194 MB / 342.7 MB, free: 3.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002404/0.2526, allocations: 71.69 kB / 342.8 MB, free: 3.25 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002816/0.2554, allocations: 0.7651 MB / 343.5 MB, free: 2.48 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004399/0.2598, allocations: 1.15 MB / 344.7 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002375/0.2622, allocations: 0.612 MB / 345.3 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007248/0.2695, allocations: 4.748 MB / 350.1 MB, free: 11.94 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005292/0.2748, allocations: 2.553 MB / 352.6 MB, free: 9.344 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003441/0.2783, allocations: 1.498 MB / 354.1 MB, free: 7.84 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004453/0.2828, allocations: 1.91 MB / 356 MB, free: 5.922 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001109/0.2839, allocations: 240 kB / 356.2 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002039/0.2859, allocations: 423.8 kB / 356.7 MB, free: 5.273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.2874, allocations: 0.907 MB / 357.6 MB, free: 4.363 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001677/0.2891, allocations: 0.8512 MB / 358.4 MB, free: 3.504 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008796/0.2979, allocations: 6.323 MB / 364.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.077e-05/0.298, allocations: 4 kB / 364.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.931e-06/0.298, allocations: 4 kB / 364.8 MB, free: 13.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0004464/0.2985, allocations: 0 / 364.8 MB, free: 13.16 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01287/0.3114, allocations: 4.307 MB / 369.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3114, allocations: 8.031 kB / 369.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005246/0.3167, allocations: 0.8771 MB / 369.9 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005887/0.3226, allocations: 2.507 MB / 372.4 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003163/0.3229, allocations: 275.2 kB / 372.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00121/0.3242, allocations: 363.8 kB / 373.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01183/0.336, allocations: 5.025 MB / 378.1 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001214/0.3362, allocations: 0 / 378.1 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000733/0.3369, allocations: 144 kB / 378.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001773/0.3371, allocations: 167.2 kB / 378.4 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009222/0.3463, allocations: 4.369 MB / 382.8 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03058/0.3769, allocations: 15.98 MB / 398.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008024/0.385, allocations: 7.791 MB / 406.5 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002911/0.388, allocations: 1.722 MB / 408.3 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008715/0.3967, allocations: 4.675 MB / 412.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.184e-05/0.3968, allocations: 55.81 kB / 413 MB, free: 11.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=161): time 5.571e-06/0.3968, allocations: 0 / 413 MB, free: 11.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=164): time 0.01769/0.4145, allocations: 8.19 MB / 421.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.4146, allocations: 76.7 kB / 421.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00392/0.4185, allocations: 2.139 MB / 423.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002041/0.4188, allocations: 53.7 kB / 423.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001204/0.42, allocations: 1.619 MB / 425.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005308/0.4205, allocations: 0.5468 MB / 425.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.4207, allocations: 44 kB / 425.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.4209, allocations: 385.7 kB / 426 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001614/0.4225, allocations: 0.9447 MB / 427 MB, free: 13.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00192/0.4245, allocations: 1.453 MB / 428.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00195/0.4264, allocations: 1.185 MB / 429.6 MB, free: 10.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.388e-05/0.4264, allocations: 4 kB / 429.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005969/0.4324, allocations: 3.355 MB / 433 MB, free: 6.793 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.972e-05/0.4325, allocations: 8 kB / 433 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.581e-05/0.4325, allocations: 16 kB / 433 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001853/0.4344, allocations: 0.7395 MB / 433.7 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.4358, allocations: 383.4 kB / 434.1 MB, free: 5.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01219/0.448, allocations: 10.4 MB / 444.5 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/0.4499, allocations: 91.86 kB / 444.6 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003402/0.4502, allocations: 83.98 kB / 444.7 MB, free: 10.53 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002501/0.4527, allocations: 1.219 MB / 445.9 MB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006315/0.4534, allocations: 221.3 kB / 446.1 MB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005952/0.4593, allocations: 3.171 MB / 449.3 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-05/0.4594, allocations: 19.95 kB / 449.3 MB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.458e-05/0.4594, allocations: 12 kB / 449.3 MB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/0.4595, allocations: 7.969 kB / 449.3 MB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2/0.6594, allocations: 6.578 MB / 455.9 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.6595, allocations: 2.625 kB / 455.9 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009857/0.6605, allocations: 179.6 kB / 456.1 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002356/0.6629, allocations: 0.9021 MB / 457 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001425/0.663, allocations: 46.89 kB / 457 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/0.6756, allocations: 14.79 MB / 471.8 MB, free: 97.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.6756, allocations: 3.281 kB / 471.8 MB, free: 97.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006136/0.6818, allocations: 4.525 MB / 476.4 MB, free: 95.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/0.6831, allocations: 0.5186 MB / 476.9 MB, free: 94.85 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005598/0.6836, allocations: 35.84 kB / 476.9 MB, free: 94.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.6847, allocations: 88.28 kB / 477 MB, free: 94.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000419/0.6852, allocations: 164.2 kB / 477.2 MB, free: 94.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.602e-05/0.6853, allocations: 46.42 kB / 477.2 MB, free: 94.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001975/0.6872, allocations: 1.471 MB / 478.7 MB, free: 94.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6872, allocations: 3.828 kB / 478.7 MB, free: 94.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002599/0.6898, allocations: 0.6982 MB / 479.4 MB, free: 94.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003567/0.6902, allocations: 174.5 kB / 479.5 MB, free: 93.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00432/0.6945, allocations: 3.124 MB / 482.7 MB, free: 91.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.6946, allocations: 4 kB / 482.7 MB, free: 91.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0028/0.6974, allocations: 2.268 MB / 484.9 MB, free: 89.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003371/0.7008, allocations: 0.6231 MB / 485.6 MB, free: 88.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.7121, allocations: 8.164 MB / 493.7 MB, free: 80.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002488/0.7146, allocations: 2.678 MB / 496.4 MB, free: 78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001695/0.7163, allocations: 479.4 kB / 496.9 MB, free: 77.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005081/0.7169, allocations: 135.4 kB / 497 MB, free: 77.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.233e-06/0.7169, allocations: 0 / 497 MB, free: 77.4 MB / 382.1 MB Notification: Performance of Templates: time 0.05356/0.7704, allocations: 35.42 MB / 0.52 GB, free: 41.94 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)