Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.00818/0.00818, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001246/0.001246, allocations: 195.7 kB / 16.68 MB, free: 5.977 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.395/1.395, 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.00142/0.00142, allocations: 51.38 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09049/0.09192, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.0184/0.1104, allocations: 13.57 MB / 386.8 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.121, allocations: 4.435 MB / 391.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002527/0.1236, allocations: 71.75 kB / 391.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003818/0.1274, allocations: 1.002 MB / 392.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005069/0.1325, allocations: 1.305 MB / 393.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003206/0.1358, allocations: 0.9051 MB / 394.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006633/0.1424, allocations: 4.106 MB / 398.6 MB, free: 7.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005159/0.1476, allocations: 3.193 MB / 401.8 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002943/0.1506, allocations: 1.885 MB / 403.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003633/0.1542, allocations: 2.09 MB / 405.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001143/0.1554, allocations: 0.5117 MB / 406.3 MB, free: 20 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002004/0.1574, allocations: 0.7029 MB / 407 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001462/0.1589, allocations: 1.114 MB / 408.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004182/0.1631, allocations: 2.139 MB / 410.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00742/0.1705, allocations: 6.699 MB / 416.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1705, allocations: 0 / 416.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1706, allocations: 0 / 416.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001012/0.1707, allocations: 0 / 416.9 MB, free: 5.332 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01037/0.181, allocations: 4.402 MB / 421.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.1811, allocations: 11.97 kB / 421.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004085/0.1852, allocations: 0.8163 MB / 422.1 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004211/0.1894, allocations: 2.276 MB / 424.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.1896, allocations: 254.8 kB / 424.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005171/0.1901, allocations: 328 kB / 425 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007322/0.1975, allocations: 4.255 MB / 429.2 MB, free: 8.816 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.455e-05/0.1976, allocations: 7.922 kB / 429.3 MB, free: 8.809 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003248/0.1979, allocations: 136 kB / 429.4 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001508/0.1981, allocations: 154.4 kB / 429.5 MB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00599/0.2041, allocations: 3.594 MB / 433.1 MB, free: 4.922 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02225/0.2264, allocations: 13.7 MB / 446.8 MB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1995/0.4259, allocations: 6.562 MB / 453.4 MB, free: 67.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003173/0.4291, allocations: 1.389 MB / 454.8 MB, free: 67.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006576/0.4357, allocations: 3.622 MB / 458.4 MB, free: 66.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.4358, allocations: 46.77 kB / 458.4 MB, free: 66.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.307e-06/0.4358, allocations: 2 kB / 458.4 MB, free: 66.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01129/0.4471, allocations: 5.873 MB / 464.3 MB, free: 63.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.4472, allocations: 70.56 kB / 464.4 MB, free: 63.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002995/0.4502, allocations: 1.784 MB / 466.2 MB, free: 62.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.4504, allocations: 59.45 kB / 466.2 MB, free: 62.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001132/0.4515, allocations: 1.431 MB / 467.7 MB, free: 61.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005106/0.452, allocations: 480.2 kB / 468.1 MB, free: 60.94 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005948/0.4526, allocations: 312.9 kB / 468.4 MB, free: 60.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.565e-05/0.4527, allocations: 307.1 kB / 468.7 MB, free: 60.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.4538, allocations: 0.6754 MB / 469.4 MB, free: 60.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.4551, allocations: 1.199 MB / 470.6 MB, free: 59.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.4577, allocations: 1.999 MB / 472.6 MB, free: 57.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/0.4577, allocations: 7.906 kB / 472.6 MB, free: 57.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003896/0.4616, allocations: 2.542 MB / 475.2 MB, free: 56.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.4616, allocations: 11.88 kB / 475.2 MB, free: 56.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.4617, allocations: 19.56 kB / 475.2 MB, free: 56.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008933/0.4626, allocations: 363.5 kB / 475.5 MB, free: 56.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.4638, allocations: 373 kB / 475.9 MB, free: 56.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005782/0.4696, allocations: 8.425 MB / 484.3 MB, free: 49.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.4711, allocations: 78.48 kB / 484.4 MB, free: 49.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.4712, allocations: 74.5 kB / 484.5 MB, free: 49.34 MB / 382.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.001554/0.4728, allocations: 1.002 MB / 485.5 MB, free: 48.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/0.4731, allocations: 198 kB / 485.7 MB, free: 48.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0032/0.4763, allocations: 2.287 MB / 488 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.4763, allocations: 15.53 kB / 488 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.4763, allocations: 7.688 kB / 488 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.4763, allocations: 7.969 kB / 488 MB, free: 47.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006378/0.4827, allocations: 5.068 MB / 493.1 MB, free: 42.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4827, allocations: 8.031 kB / 493.1 MB, free: 42.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007101/0.4835, allocations: 167.8 kB / 493.2 MB, free: 42.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/0.4847, allocations: 0.5427 MB / 493.8 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.046e-05/0.4848, allocations: 45.02 kB / 493.8 MB, free: 41.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008827/0.4936, allocations: 13.22 MB / 0.4952 GB, free: 27.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.4937, allocations: 0 / 0.4952 GB, free: 27.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004165/0.4978, allocations: 3.217 MB / 0.4983 GB, free: 24.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008355/0.4987, allocations: 430.5 kB / 0.4987 GB, free: 24.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/0.4989, allocations: 31.98 kB / 0.4987 GB, free: 24.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008486/0.4998, allocations: 63.95 kB / 0.4988 GB, free: 23.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/0.5, allocations: 108.5 kB / 0.4989 GB, free: 23.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.171e-05/0.5001, allocations: 40 kB / 0.4989 GB, free: 23.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001461/0.5016, allocations: 1.219 MB / 0.5001 GB, free: 22.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5016, allocations: 0 / 0.5001 GB, free: 22.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00215/0.5037, allocations: 0.5801 MB / 0.5007 GB, free: 22.05 MB / 382.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.0002792/0.504, allocations: 169.5 kB / 0.5009 GB, free: 21.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002929/0.507, allocations: 2.36 MB / 0.5032 GB, free: 19.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.507, allocations: 0 / 0.5032 GB, free: 19.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002021/0.509, allocations: 1.753 MB / 0.5049 GB, free: 17.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/0.5113, allocations: 0.5418 MB / 0.5054 GB, free: 17.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007919/0.5192, allocations: 5.834 MB / 0.5111 GB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001471/0.5207, allocations: 2.303 MB / 0.5134 GB, free: 8.902 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001183/0.5219, allocations: 401 kB / 0.5137 GB, free: 8.508 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.5222, allocations: 123.4 kB / 0.5139 GB, free: 8.391 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5222, allocations: 0 / 0.5139 GB, free: 8.391 MB / 382.1 MB Notification: Performance of Templates: time 0.04979/0.572, allocations: 30.23 MB / 0.5434 GB, free: 10.12 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1)