Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 193.1 kB / 16.67 MB, free: 6.574 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.416/1.416, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001055/0.001055, allocations: 54.3 kB / 326.6 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09021/0.09128, allocations: 46.62 MB / 373.2 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.0177/0.109, allocations: 16.75 MB / 389.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.1204, allocations: 5.716 MB / 395.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003205/0.1237, allocations: 95.56 kB / 395.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004079/0.1278, allocations: 1.336 MB / 397.1 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005735/0.1335, allocations: 1.771 MB / 398.8 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003066/0.1366, allocations: 1.06 MB / 399.9 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007951/0.1446, allocations: 6.315 MB / 406.2 MB, free: 264 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007332/0.1519, allocations: 5.288 MB / 411.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005411/0.1574, allocations: 2.932 MB / 414.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005256/0.1626, allocations: 3.339 MB / 417.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001522/0.1642, allocations: 0.7928 MB / 418.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002409/0.1666, allocations: 1.062 MB / 419.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001736/0.1683, allocations: 1.866 MB / 421.5 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005356/0.1737, allocations: 3.345 MB / 424.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01238/0.1861, allocations: 10.54 MB / 435.4 MB, free: 2.926 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.1862, allocations: 0 / 435.4 MB, free: 2.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1862, allocations: 4 kB / 435.4 MB, free: 2.922 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002839/0.1865, allocations: 0 / 435.4 MB, free: 2.922 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.0172/0.2037, allocations: 6.652 MB / 442 MB, free: 12.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.2037, allocations: 11.89 kB / 442.1 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005388/0.2091, allocations: 1.083 MB / 443.1 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006416/0.2156, allocations: 3.433 MB / 446.6 MB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002804/0.2159, allocations: 373.7 kB / 446.9 MB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008997/0.2168, allocations: 483.9 kB / 447.4 MB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2563/0.4732, allocations: 6.864 MB / 454.3 MB, free: 64.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001875/0.4734, allocations: 7.531 kB / 454.3 MB, free: 64.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008879/0.4743, allocations: 201 kB / 454.5 MB, free: 64.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004029/0.4747, allocations: 240.9 kB / 454.7 MB, free: 64.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01546/0.4902, allocations: 5.928 MB / 460.6 MB, free: 63.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03585/0.526, allocations: 20.72 MB / 481.4 MB, free: 49.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008275/0.5344, allocations: 9.957 MB / 491.3 MB, free: 40.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003616/0.538, allocations: 2.483 MB / 493.8 MB, free: 38.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009593/0.5477, allocations: 6.5 MB / 0.4886 GB, free: 32.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.5477, allocations: 64.38 kB / 0.4886 GB, free: 32.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 4.619e-06/0.5477, allocations: 0.75 kB / 0.4886 GB, free: 32.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.01608/0.5638, allocations: 9.747 MB / 0.4982 GB, free: 22.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.5639, allocations: 77.41 kB / 0.4982 GB, free: 22.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003859/0.5678, allocations: 2.994 MB / 0.5012 GB, free: 19.33 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003786/0.5682, allocations: 61.7 kB / 0.5012 GB, free: 19.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.5695, allocations: 2.213 MB / 0.5034 GB, free: 17.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006504/0.5702, allocations: 0.7935 MB / 0.5041 GB, free: 16.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006843/0.5709, allocations: 473.2 kB / 0.5046 GB, free: 15.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.974e-05/0.571, allocations: 302.2 kB / 0.5049 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001737/0.5727, allocations: 1.293 MB / 0.5061 GB, free: 14.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/0.5746, allocations: 1.912 MB / 0.508 GB, free: 12.19 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003647/0.5783, allocations: 3.352 MB / 0.5113 GB, free: 8.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.438e-05/0.5783, allocations: 10.62 kB / 0.5113 GB, free: 8.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.00629/0.5846, allocations: 4.258 MB / 0.5155 GB, free: 4.277 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.136e-05/0.5847, allocations: 15.94 kB / 0.5155 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.984e-05/0.5847, allocations: 16 kB / 0.5155 GB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002024/0.5867, allocations: 0.7247 MB / 0.5162 GB, free: 3.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002241/0.589, allocations: 0.5655 MB / 0.5167 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/0.5997, allocations: 10.89 MB / 0.5274 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00302/0.6027, allocations: 99.95 kB / 0.5275 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003047/0.6031, allocations: 108 kB / 0.5276 GB, free: 7.309 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[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 (278): * Single equations (assignments): 273 * 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 {(3,25,77.8%), (1,8,100.0%), (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.003531/0.6066, allocations: 1.614 MB / 0.5292 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008815/0.6075, allocations: 329.9 kB / 0.5295 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00712/0.6146, allocations: 3.914 MB / 0.5333 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.6147, allocations: 24 kB / 0.5333 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.646e-05/0.6147, allocations: 16 kB / 0.5333 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.102e-05/0.6147, allocations: 7.969 kB / 0.5333 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01584/0.6306, allocations: 8.557 MB / 0.5417 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.6306, allocations: 6.188 kB / 0.5417 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/0.6322, allocations: 343.8 kB / 0.542 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00283/0.635, allocations: 0.8868 MB / 0.5429 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002322/0.6353, allocations: 51.98 kB / 0.5429 GB, free: 7.371 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01666/0.6519, allocations: 15.7 MB / 0.5583 GB, free: 6.855 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.652, allocations: 0 / 0.5583 GB, free: 6.855 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009251/0.6612, allocations: 5.719 MB / 0.5639 GB, free: 1.035 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001729/0.663, allocations: 0.7019 MB / 0.5646 GB, free: 320 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005429/0.6635, allocations: 51.98 kB / 0.5646 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.665, allocations: 111.9 kB / 0.5647 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005077/0.6656, allocations: 185.8 kB / 0.5649 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000159/0.6657, allocations: 64.73 kB / 0.5649 GB, free: 15.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003274/0.669, allocations: 2.066 MB / 0.567 GB, free: 13.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.669, allocations: 0 / 0.567 GB, free: 13.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003732/0.6728, allocations: 0.9374 MB / 0.5679 GB, free: 12.91 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * 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,8,100.0%), (2,26,100.0%), (1,1,100.0%), (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.0008235/0.6736, allocations: 269.9 kB / 0.5681 GB, free: 12.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006737/0.6804, allocations: 3.898 MB / 0.5719 GB, free: 8.668 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/0.6804, allocations: 3.938 kB / 0.5719 GB, free: 8.664 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004151/0.6846, allocations: 2.637 MB / 0.5745 GB, free: 5.957 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00428/0.6889, allocations: 0.9145 MB / 0.5754 GB, free: 5.039 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01674/0.7056, allocations: 9.561 MB / 0.5848 GB, free: 11.42 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003495/0.7092, allocations: 3.422 MB / 0.5881 GB, free: 7.961 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002781/0.712, allocations: 0.7604 MB / 0.5888 GB, free: 7.195 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005996/0.7126, allocations: 191.4 kB / 0.589 GB, free: 7.008 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7126, allocations: 4 kB / 0.589 GB, free: 7.004 MB / 462.1 MB Notification: Performance of Templates: time 0.2821/0.9947, allocations: 48.87 MB / 0.6368 GB, free: 157.6 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)