Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 88.19 kB / 16.65 MB, free: 6.535 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.001383/0.001384, allocations: 175.2 kB / 17.56 MB, free: 6.18 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.412/1.412, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0004699/0.0004699, allocations: 20 kB / 280.7 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08579, allocations: 47.58 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.01361/0.09943, allocations: 12.77 MB / 341.1 MB, free: 6.926 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00854/0.108, allocations: 4.343 MB / 345.4 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00215/0.1102, allocations: 63.75 kB / 345.5 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00324/0.1135, allocations: 0.8667 MB / 346.4 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005361/0.1189, allocations: 1.177 MB / 347.5 MB, free: 460 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003039/0.1219, allocations: 0.8226 MB / 348.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006626/0.1286, allocations: 4.332 MB / 352.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004291/0.1329, allocations: 2.607 MB / 355.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002448/0.1354, allocations: 1.326 MB / 356.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002808/0.1382, allocations: 1.68 MB / 358.3 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008326/0.139, allocations: 208 kB / 358.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001792/0.1408, allocations: 427.7 kB / 358.9 MB, free: 4.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001256/0.1421, allocations: 0.7665 MB / 359.7 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003211/0.1453, allocations: 1.766 MB / 361.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006534/0.1519, allocations: 6.26 MB / 367.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1519, allocations: 0 / 367.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.566e-06/0.1519, allocations: 4 kB / 367.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.404e-05/0.152, allocations: 0 / 367.7 MB, free: 12.12 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.009224/0.1613, allocations: 3.704 MB / 371.4 MB, free: 8.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.1613, allocations: 12.03 kB / 371.4 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004662/0.166, allocations: 0.8202 MB / 372.3 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004991/0.171, allocations: 2.221 MB / 374.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003025/0.1713, allocations: 242.8 kB / 374.7 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009081/0.1723, allocations: 332 kB / 375 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01008/0.1824, allocations: 4.278 MB / 379.3 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001066/0.1825, allocations: 0 / 379.3 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005506/0.1831, allocations: 132 kB / 379.5 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001524/0.1832, allocations: 146.4 kB / 379.6 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1704/0.3536, allocations: 3.598 MB / 383.2 MB, free: 47.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01986/0.3735, allocations: 13.95 MB / 397.1 MB, free: 39.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005057/0.3786, allocations: 6.557 MB / 403.7 MB, free: 33.15 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001897/0.3806, allocations: 1.399 MB / 405.1 MB, free: 32.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004724/0.3853, allocations: 3.646 MB / 408.7 MB, free: 29.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.3853, allocations: 56.97 kB / 408.8 MB, free: 29.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=134): time 3.236e-06/0.3854, allocations: 0.7812 kB / 408.8 MB, free: 29.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=137): time 0.00936/0.3947, allocations: 5.914 MB / 414.7 MB, free: 24.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.3948, allocations: 64.72 kB / 414.8 MB, free: 24.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/0.3968, allocations: 1.788 MB / 416.6 MB, free: 22.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.259e-05/0.3969, allocations: 49.7 kB / 416.6 MB, free: 22.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005947/0.3975, allocations: 1.429 MB / 418 MB, free: 21.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002328/0.3977, allocations: 484.4 kB / 418.5 MB, free: 20.99 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.3979, allocations: 145.6 kB / 418.7 MB, free: 20.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.407e-05/0.3979, allocations: 306.3 kB / 419 MB, free: 20.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008909/0.3988, allocations: 0.6832 MB / 419.6 MB, free: 19.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.3999, allocations: 1.209 MB / 420.9 MB, free: 18.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002051/0.4019, allocations: 1.999 MB / 422.9 MB, free: 16.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.4019, allocations: 4 kB / 422.9 MB, free: 16.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.00337/0.4053, allocations: 2.549 MB / 425.4 MB, free: 13.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.4054, allocations: 12 kB / 425.4 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.4054, allocations: 16 kB / 425.4 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008142/0.4062, allocations: 367.3 kB / 425.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.4074, allocations: 375.4 kB / 426.2 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00517/0.4126, allocations: 7.715 MB / 433.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/0.4139, allocations: 79.97 kB / 434 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.414, allocations: 75.98 kB / 434 MB, free: 4.461 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * 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,7,100.0%), (2,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.001446/0.4155, allocations: 1.001 MB / 435 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002595/0.4157, allocations: 193.7 kB / 435.2 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003289/0.419, allocations: 2.298 MB / 437.5 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.4191, allocations: 15.94 kB / 437.5 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/0.4191, allocations: 8 kB / 437.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.4191, allocations: 7.969 kB / 437.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007538/0.4266, allocations: 5.083 MB / 442.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.4267, allocations: 0 / 442.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007918/0.4275, allocations: 179.8 kB / 442.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/0.4289, allocations: 0.5322 MB / 443.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.442e-05/0.429, allocations: 31.98 kB / 443.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01152/0.4405, allocations: 12.11 MB / 455.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.4405, allocations: 4.031 kB / 455.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005245/0.4458, allocations: 3.219 MB / 458.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008872/0.4467, allocations: 430.6 kB / 459.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002598/0.447, allocations: 32 kB / 459.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008831/0.4479, allocations: 71.94 kB / 459.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003/0.4482, allocations: 105.2 kB / 459.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.398e-05/0.4483, allocations: 44.55 kB / 459.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001746/0.45, allocations: 1.219 MB / 460.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.45, allocations: 0 / 460.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001993/0.452, allocations: 0.5781 MB / 461.2 MB, free: 8.254 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * 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,7,100.0%), (2,8,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.0003278/0.4524, allocations: 171 kB / 461.3 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003564/0.456, allocations: 2.362 MB / 463.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.456, allocations: 0 / 463.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00251/0.4585, allocations: 1.751 MB / 465.4 MB, free: 3.832 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002716/0.4612, allocations: 0.5026 MB / 465.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.4716, allocations: 7.4 MB / 473.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002072/0.4737, allocations: 2.311 MB / 475.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001551/0.4753, allocations: 405 kB / 476.1 MB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003064/0.4756, allocations: 119.4 kB / 476.2 MB, free: 9.02 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4756, allocations: 4 kB / 476.2 MB, free: 9.016 MB / 366.1 MB Notification: Performance of Templates: time 0.05355/0.5292, allocations: 28.25 MB / 0.4926 GB, free: 12.74 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1)