Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001024/0.001024, allocations: 94.53 kB / 16.65 MB, free: 6.586 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.001143/0.001143, allocations: 187.3 kB / 17.57 MB, free: 6.199 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.355/1.355, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.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.0004565/0.0004565, allocations: 12 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09378/0.09425, allocations: 47.59 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01695/0.1112, allocations: 15.81 MB / 344.1 MB, free: 3.863 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0117/0.123, allocations: 5.593 MB / 349.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002742/0.1258, allocations: 91.56 kB / 349.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003256/0.129, allocations: 1.15 MB / 351 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00484/0.1339, allocations: 1.625 MB / 352.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002286/0.1362, allocations: 0.9592 MB / 353.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008092/0.1443, allocations: 6.927 MB / 360.5 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005311/0.1497, allocations: 4.382 MB / 364.9 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004237/0.1539, allocations: 2.083 MB / 367 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004591/0.1585, allocations: 2.738 MB / 369.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000943/0.1595, allocations: 328 kB / 370 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001915/0.1614, allocations: 0.6167 MB / 370.6 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001185/0.1626, allocations: 1.315 MB / 371.9 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003097/0.1657, allocations: 2.761 MB / 374.7 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1857/0.3514, allocations: 9.828 MB / 384.5 MB, free: 23.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3514, allocations: 1.312 kB / 384.5 MB, free: 23.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.3515, allocations: 0 / 384.5 MB, free: 23.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003451/0.3518, allocations: 3.719 kB / 384.5 MB, free: 23.2 MB / 318.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.0161/0.3679, allocations: 5.473 MB / 390 MB, free: 21.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.368, allocations: 8.531 kB / 390 MB, free: 21.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00712/0.3751, allocations: 1.064 MB / 391.1 MB, free: 20.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008114/0.3833, allocations: 3.333 MB / 394.4 MB, free: 19.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004028/0.3837, allocations: 367.5 kB / 394.8 MB, free: 19.83 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001687/0.3854, allocations: 487.4 kB / 395.2 MB, free: 19.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01294/0.3984, allocations: 6.885 MB / 402.1 MB, free: 18.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001074/0.3985, allocations: 2.969 kB / 402.1 MB, free: 18.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000518/0.399, allocations: 200 kB / 402.3 MB, free: 18.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001913/0.3992, allocations: 239 kB / 402.6 MB, free: 18.21 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009176/0.4084, allocations: 5.956 MB / 408.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03045/0.4389, allocations: 21.05 MB / 429.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009618/0.4486, allocations: 9.973 MB / 439.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004027/0.4526, allocations: 2.502 MB / 442 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01119/0.4638, allocations: 6.522 MB / 448.6 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/0.4639, allocations: 64.55 kB / 448.6 MB, free: 8.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 4.248e-06/0.4639, allocations: 0 / 448.6 MB, free: 8.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=226): time 0.01848/0.4824, allocations: 9.762 MB / 458.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.711e-05/0.4825, allocations: 77.41 kB / 458.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004577/0.4871, allocations: 3 MB / 461.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002341/0.4873, allocations: 61.7 kB / 461.5 MB, free: 11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00154/0.4889, allocations: 2.159 MB / 463.7 MB, free: 8.832 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007698/0.4897, allocations: 0.7604 MB / 464.4 MB, free: 8.078 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000311/0.49, allocations: 210.9 kB / 464.7 MB, free: 7.867 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.929e-05/0.4901, allocations: 301.1 kB / 464.9 MB, free: 7.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00211/0.4922, allocations: 1.313 MB / 466.3 MB, free: 6.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00253/0.4948, allocations: 1.93 MB / 468.2 MB, free: 4.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004951/0.4997, allocations: 3.372 MB / 471.6 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.635e-05/0.4998, allocations: 4 kB / 471.6 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007873/0.5076, allocations: 4.273 MB / 475.8 MB, free: 12.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.5077, allocations: 20.03 kB / 475.9 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-05/0.5077, allocations: 20 kB / 475.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002638/0.5104, allocations: 0.7702 MB / 476.6 MB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002251/0.5126, allocations: 0.5693 MB / 477.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/0.5233, allocations: 10.06 MB / 487.3 MB, free: 448 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002557/0.5259, allocations: 108 kB / 487.4 MB, free: 340 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002795/0.5262, allocations: 107.9 kB / 487.5 MB, free: 232 kB / 382.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.003318/0.5295, allocations: 1.609 MB / 489.1 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007193/0.5303, allocations: 320.1 kB / 489.4 MB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006559/0.5368, allocations: 3.934 MB / 493.3 MB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.5369, allocations: 27.47 kB / 493.4 MB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.476e-05/0.5369, allocations: 11.94 kB / 493.4 MB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.138e-05/0.5369, allocations: 11.95 kB / 493.4 MB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/0.5501, allocations: 8.584 MB / 0.4902 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/0.5502, allocations: 8.234 kB / 0.4902 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001509/0.5517, allocations: 349.5 kB / 0.4906 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003142/0.5549, allocations: 0.9258 MB / 0.4915 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001913/0.5551, allocations: 63.97 kB / 0.4915 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01447/0.5695, allocations: 14.44 MB / 0.5056 GB, free: 1.184 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.5696, allocations: 4.031 kB / 0.5056 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009781/0.5794, allocations: 5.725 MB / 0.5112 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002312/0.5817, allocations: 0.6924 MB / 0.5119 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005117/0.5823, allocations: 55.98 kB / 0.5119 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/0.5838, allocations: 119.9 kB / 0.5121 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005035/0.5843, allocations: 189.7 kB / 0.5122 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001497/0.5845, allocations: 63.55 kB / 0.5123 GB, free: 10.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00344/0.5879, allocations: 2.062 MB / 0.5143 GB, free: 8.203 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5879, allocations: 0 / 0.5143 GB, free: 8.203 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003397/0.5913, allocations: 0.9492 MB / 0.5152 GB, free: 7.254 MB / 430.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.0006454/0.592, allocations: 246.9 kB / 0.5155 GB, free: 7.023 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005898/0.5979, allocations: 3.92 MB / 0.5193 GB, free: 3.102 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.5979, allocations: 4 kB / 0.5193 GB, free: 3.098 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003883/0.6018, allocations: 2.663 MB / 0.5219 GB, free: 408 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004854/0.6067, allocations: 0.8668 MB / 0.5228 GB, free: 15.53 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01759/0.6243, allocations: 11.75 MB / 0.5342 GB, free: 3.727 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003465/0.6278, allocations: 3.418 MB / 0.5376 GB, free: 280 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.1822/0.8099, allocations: 0.7614 MB / 0.5383 GB, free: 157.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000643/0.8106, allocations: 194.6 kB / 0.5385 GB, free: 157.5 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.8106, allocations: 0 / 0.5385 GB, free: 157.5 MB / 446.1 MB Notification: Performance of Templates: time 0.07712/0.8878, allocations: 48.34 MB / 0.5857 GB, free: 125.9 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)