Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.005115/0.005115, allocations: 104.4 kB / 15.74 MB, free: 6.441 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.00118/0.00118, allocations: 190.2 kB / 16.67 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.1 MB / 222.6 MB, free: 4.484 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.001342/0.001342, allocations: 50.53 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09319/0.09454, allocations: 46.63 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01549/0.1101, allocations: 13.66 MB / 386.9 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009496/0.1196, allocations: 4.513 MB / 391.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002936/0.1226, allocations: 75.69 kB / 391.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003815/0.1265, allocations: 1.076 MB / 392.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005347/0.1318, allocations: 1.422 MB / 393.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00265/0.1345, allocations: 0.9119 MB / 394.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00699/0.1415, allocations: 4.752 MB / 399.6 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006566/0.1481, allocations: 3.636 MB / 403.2 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004524/0.1527, allocations: 2.208 MB / 405.4 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004599/0.1573, allocations: 2.456 MB / 407.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001908/0.1593, allocations: 0.5898 MB / 408.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00263/0.1619, allocations: 0.7966 MB / 409.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002035/0.164, allocations: 1.332 MB / 410.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004372/0.1684, allocations: 2.47 MB / 413.1 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01046/0.1788, allocations: 7.774 MB / 420.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1789, allocations: 0 / 420.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1789, allocations: 0 / 420.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002618/0.1792, allocations: 0 / 420.9 MB, free: 1.383 MB / 350.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.01598/0.1952, allocations: 5.036 MB / 425.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.1952, allocations: 8.031 kB / 425.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005417/0.2007, allocations: 0.8703 MB / 426.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006348/0.207, allocations: 2.655 MB / 429.4 MB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002937/0.2074, allocations: 275.4 kB / 429.7 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0012/0.2086, allocations: 363.9 kB / 430.1 MB, free: 8.059 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01236/0.2209, allocations: 5.029 MB / 435.1 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000132/0.2211, allocations: 11.91 kB / 435.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009188/0.2221, allocations: 144 kB / 435.2 MB, free: 2.824 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002504/0.2223, allocations: 163.2 kB / 435.4 MB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009888/0.2322, allocations: 4.377 MB / 439.8 MB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2814/0.5137, allocations: 15.71 MB / 455.5 MB, free: 62.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007761/0.5215, allocations: 7.775 MB / 463.3 MB, free: 56.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002924/0.5245, allocations: 1.716 MB / 465 MB, free: 56.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007919/0.5324, allocations: 4.638 MB / 469.6 MB, free: 54.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.854e-05/0.5325, allocations: 51.28 kB / 469.7 MB, free: 54.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=161): time 4.749e-06/0.5325, allocations: 4.438 kB / 469.7 MB, free: 54.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=164): time 0.01635/0.5488, allocations: 8.127 MB / 477.8 MB, free: 51.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.5489, allocations: 68.53 kB / 477.9 MB, free: 51.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002709/0.5516, allocations: 2.16 MB / 480 MB, free: 50.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.5518, allocations: 53.05 kB / 480.1 MB, free: 49.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008446/0.5526, allocations: 1.625 MB / 481.7 MB, free: 48.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003634/0.553, allocations: 0.5454 MB / 482.2 MB, free: 48.08 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005695/0.5536, allocations: 355.3 kB / 482.6 MB, free: 47.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.51e-05/0.5536, allocations: 305.1 kB / 482.9 MB, free: 47.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.5549, allocations: 0.9445 MB / 483.8 MB, free: 47.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.5565, allocations: 1.458 MB / 485.3 MB, free: 45.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002801/0.5593, allocations: 2.505 MB / 487.8 MB, free: 44.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.5593, allocations: 3.812 kB / 487.8 MB, free: 44.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.004872/0.5642, allocations: 3.346 MB / 491.1 MB, free: 42.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.032e-05/0.5643, allocations: 18.98 kB / 491.2 MB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.679e-05/0.5643, allocations: 19 kB / 491.2 MB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001754/0.5661, allocations: 0.7312 MB / 491.9 MB, free: 41.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.5675, allocations: 386.4 kB / 492.3 MB, free: 41.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009204/0.5767, allocations: 11.34 MB / 0.4918 GB, free: 29.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001753/0.5785, allocations: 86.45 kB / 0.4919 GB, free: 29.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.5786, allocations: 80 kB / 0.492 GB, free: 29.46 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 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * 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 (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001822/0.5805, allocations: 1.208 MB / 0.4932 GB, free: 28.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003419/0.5808, allocations: 233.1 kB / 0.4934 GB, free: 28.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004516/0.5853, allocations: 3.16 MB / 0.4965 GB, free: 24.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.5854, allocations: 16 kB / 0.4965 GB, free: 24.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.5854, allocations: 12 kB / 0.4965 GB, free: 24.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.5854, allocations: 15.95 kB / 0.4965 GB, free: 24.74 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008524/0.5939, allocations: 6.553 MB / 0.5029 GB, free: 18.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.594, allocations: 0 / 0.5029 GB, free: 18.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007994/0.5948, allocations: 175.8 kB / 0.5031 GB, free: 17.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001986/0.5968, allocations: 0.9208 MB / 0.504 GB, free: 16.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.5969, allocations: 40.86 kB / 0.504 GB, free: 16.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01255/0.6095, allocations: 16.17 MB / 0.5198 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.6095, allocations: 6.547 kB / 0.5198 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007369/0.6169, allocations: 4.501 MB / 0.5242 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/0.6183, allocations: 0.5177 MB / 0.5247 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003273/0.6186, allocations: 39.98 kB / 0.5248 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.6197, allocations: 75.94 kB / 0.5248 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004545/0.6201, allocations: 165 kB / 0.525 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.915e-05/0.6202, allocations: 40 kB / 0.525 GB, free: 10.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002142/0.6224, allocations: 1.496 MB / 0.5265 GB, free: 9 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6224, allocations: 0 / 0.5265 GB, free: 9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002456/0.6249, allocations: 0.7018 MB / 0.5272 GB, free: 8.301 MB / 398.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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003638/0.6252, allocations: 178.6 kB / 0.5273 GB, free: 8.117 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004975/0.6302, allocations: 3.122 MB / 0.5304 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.6303, allocations: 0 / 0.5304 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003657/0.6339, allocations: 2.264 MB / 0.5326 GB, free: 2.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003323/0.6373, allocations: 0.6368 MB / 0.5332 GB, free: 1.953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/0.6496, allocations: 6.823 MB / 0.5399 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002589/0.6523, allocations: 2.674 MB / 0.5425 GB, free: 8.402 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001788/0.6541, allocations: 479.4 kB / 0.543 GB, free: 7.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003843/0.6545, allocations: 135.4 kB / 0.5431 GB, free: 7.797 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.6545, allocations: 0 / 0.5431 GB, free: 7.797 MB / 414.1 MB Notification: Performance of Templates: time 0.06672/0.7212, allocations: 36.93 MB / 0.5792 GB, free: 2.855 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)