Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.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.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 104 kB / 16.92 MB, free: 5.793 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.001195/0.001195, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.352/1.352, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001874/0.001875, allocations: 52.16 kB / 280 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1046, allocations: 46.63 MB / 326.6 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02491/0.1296, allocations: 23.57 MB / 350.2 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0145/0.1442, allocations: 6.914 MB / 357.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00396/0.1482, allocations: 135.4 kB / 357.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005274/0.1535, allocations: 1.614 MB / 358.9 MB, free: 4.086 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007859/0.1614, allocations: 2.376 MB / 361.2 MB, free: 1.695 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004358/0.1658, allocations: 1.439 MB / 362.7 MB, free: 260 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01337/0.1792, allocations: 8.876 MB / 371.5 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01258/0.1918, allocations: 7.007 MB / 378.6 MB, free: 252 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1523/0.3442, allocations: 4.035 MB / 382.6 MB, free: 17.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008657/0.3529, allocations: 4.714 MB / 387.3 MB, free: 16.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003619/0.3566, allocations: 1.106 MB / 388.4 MB, free: 16.54 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006149/0.3627, allocations: 1.388 MB / 389.8 MB, free: 16.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005144/0.3679, allocations: 2.725 MB / 392.5 MB, free: 16.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008429/0.3764, allocations: 4.679 MB / 397.2 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.387, allocations: 14.34 MB / 411.5 MB, free: 7.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3871, allocations: 0 / 411.5 MB, free: 7.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3871, allocations: 1.531 kB / 411.5 MB, free: 7.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003573/0.3875, allocations: 0 / 411.5 MB, free: 7.629 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02039/0.4079, allocations: 8.904 MB / 420.4 MB, free: 1.879 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.4079, allocations: 10.5 kB / 420.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005455/0.4134, allocations: 1.312 MB / 421.8 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009711/0.4231, allocations: 5.028 MB / 426.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004135/0.4236, allocations: 0.4931 MB / 427.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001655/0.4252, allocations: 0.6682 MB / 428 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02032/0.4456, allocations: 9.442 MB / 437.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001989/0.4458, allocations: 19.36 kB / 437.4 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009811/0.4468, allocations: 279.2 kB / 437.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002807/0.4471, allocations: 297.4 kB / 438 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01631/0.4634, allocations: 8.076 MB / 446.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05106/0.5145, allocations: 29.4 MB / 475.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01276/0.5273, allocations: 11.97 MB / 487.4 MB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005825/0.5332, allocations: 3.385 MB / 490.8 MB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01412/0.5473, allocations: 7.994 MB / 498.8 MB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.569e-05/0.5474, allocations: 68.88 kB / 498.9 MB, free: 2.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=305): time 5.169e-06/0.5475, allocations: 0 / 498.9 MB, free: 2.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=324): time 0.03163/0.5791, allocations: 15.84 MB / 0.5027 GB, free: 2.668 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.5792, allocations: 81.95 kB / 0.5027 GB, free: 2.574 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006087/0.5853, allocations: 4.008 MB / 0.5067 GB, free: 14.55 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005969/0.5859, allocations: 81.7 kB / 0.5067 GB, free: 14.46 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002315/0.5882, allocations: 3.084 MB / 0.5097 GB, free: 11.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/0.5895, allocations: 1.095 MB / 0.5108 GB, free: 10.28 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0011/0.5906, allocations: 0.6806 MB / 0.5115 GB, free: 9.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.5907, allocations: 301.1 kB / 0.5118 GB, free: 9.293 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002906/0.5936, allocations: 1.862 MB / 0.5136 GB, free: 7.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003608/0.5972, allocations: 2.842 MB / 0.5164 GB, free: 4.203 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006553/0.6038, allocations: 4.902 MB / 0.5211 GB, free: 15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-05/0.6038, allocations: 8 kB / 0.5211 GB, free: 14.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01027/0.6141, allocations: 6.411 MB / 0.5274 GB, free: 8.664 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.6142, allocations: 16 kB / 0.5274 GB, free: 8.648 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.811e-05/0.6142, allocations: 28 kB / 0.5275 GB, free: 8.621 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002859/0.6171, allocations: 1.278 MB / 0.5287 GB, free: 7.309 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003044/0.6201, allocations: 0.8089 MB / 0.5295 GB, free: 6.547 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1723/0.7925, allocations: 22.54 MB / 0.5515 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003592/0.7961, allocations: 198.5 kB / 0.5517 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000454/0.7966, allocations: 154.9 kB / 0.5518 GB, free: 140.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 9 (rheostatE.booleanStep[3].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[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 (424): * Single equations (assignments): 410 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (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): 11 systems {(1,8,100.0%), (2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003957/0.8006, allocations: 2.183 MB / 0.554 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009769/0.8015, allocations: 446.3 kB / 0.5544 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009455/0.811, allocations: 6.057 MB / 0.5603 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.779e-05/0.8111, allocations: 31.62 kB / 0.5603 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.485e-05/0.8111, allocations: 20.23 kB / 0.5604 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.052e-05/0.8112, allocations: 17.89 kB / 0.5604 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01928/0.8304, allocations: 12.36 MB / 0.5724 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/0.8305, allocations: 3.875 kB / 0.5725 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001908/0.8324, allocations: 453 kB / 0.5729 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003441/0.8359, allocations: 1.618 MB / 0.5745 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003195/0.8362, allocations: 79.05 kB / 0.5745 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02194/0.8582, allocations: 32.91 MB / 0.6067 GB, free: 101.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.8582, allocations: 8.406 kB / 0.6067 GB, free: 101.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01122/0.8694, allocations: 8.642 MB / 0.6151 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00205/0.8715, allocations: 0.9118 MB / 0.616 GB, free: 92.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006579/0.8722, allocations: 64 kB / 0.6161 GB, free: 92.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001933/0.8741, allocations: 179.8 kB / 0.6162 GB, free: 92.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005971/0.8747, allocations: 281.8 kB / 0.6165 GB, free: 91.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001823/0.8749, allocations: 91.97 kB / 0.6166 GB, free: 91.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003358/0.8783, allocations: 2.719 MB / 0.6193 GB, free: 89.01 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.8783, allocations: 0 / 0.6193 GB, free: 89.01 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004106/0.8824, allocations: 1.331 MB / 0.6206 GB, free: 87.68 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 16 * 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): 16 systems {(2,14,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%), (1,8,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.0005857/0.883, allocations: 285 kB / 0.6208 GB, free: 87.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01572/0.8988, allocations: 9.432 MB / 0.63 GB, free: 77.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/0.8988, allocations: 0 / 0.63 GB, free: 77.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006229/0.905, allocations: 4.783 MB / 0.6347 GB, free: 72.79 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006678/0.9118, allocations: 1.341 MB / 0.636 GB, free: 71.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01896/0.9307, allocations: 13.39 MB / 0.6491 GB, free: 58 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003438/0.9342, allocations: 4.491 MB / 0.6535 GB, free: 53.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003317/0.9376, allocations: 1.054 MB / 0.6545 GB, free: 52.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006582/0.9382, allocations: 275.4 kB / 0.6548 GB, free: 52.14 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.9382, allocations: 0 / 0.6548 GB, free: 52.14 MB / 446.1 MB Notification: Performance of Templates: time 0.2597/1.198, allocations: 73.84 MB / 0.7269 GB, free: 115 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)