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.001138/0.001138, allocations: 114.7 kB / 16.51 MB, free: 6.652 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.001121/0.001121, allocations: 199.9 kB / 17.43 MB, free: 6.035 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.382/1.382, allocations: 205.1 MB / 223.3 MB, free: 12.36 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.001313/0.001313, allocations: 51.92 kB / 279.3 MB, free: 3.555 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09137/0.0927, allocations: 46.62 MB / 326 MB, free: 4.863 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02685/0.1196, allocations: 23.25 MB / 349.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01394/0.1336, allocations: 6.852 MB / 356.1 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004203/0.1378, allocations: 131.4 kB / 356.2 MB, free: 6.504 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005305/0.1432, allocations: 1.383 MB / 357.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007328/0.1505, allocations: 2.172 MB / 359.7 MB, free: 2.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003761/0.1543, allocations: 1.322 MB / 361.1 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01223/0.1666, allocations: 9.915 MB / 371 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01063/0.1773, allocations: 5.779 MB / 376.8 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1591/0.3365, allocations: 3.316 MB / 380.1 MB, free: 16.44 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00922/0.3457, allocations: 4.441 MB / 384.5 MB, free: 16.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003502/0.3493, allocations: 0.6415 MB / 385.2 MB, free: 16.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005956/0.3552, allocations: 0.929 MB / 386.1 MB, free: 16.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004157/0.3594, allocations: 2.229 MB / 388.3 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008626/0.3681, allocations: 4.161 MB / 392.5 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01493/0.383, allocations: 13.95 MB / 406.4 MB, free: 9.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.383, allocations: 3.125 kB / 406.4 MB, free: 9.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3831, allocations: 0 / 406.4 MB, free: 9.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004204/0.3835, allocations: 0 / 406.4 MB, free: 9.25 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.02829/0.4118, allocations: 8.895 MB / 415.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.4118, allocations: 11.31 kB / 415.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007744/0.4196, allocations: 1.311 MB / 416.6 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01176/0.4314, allocations: 4.99 MB / 421.6 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004838/0.4319, allocations: 0.4984 MB / 422.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002517/0.4344, allocations: 0.666 MB / 422.8 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02595/0.4604, allocations: 9.451 MB / 432.3 MB, free: 6.113 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003244/0.4607, allocations: 15.89 kB / 432.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002178/0.4629, allocations: 276 kB / 432.5 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003229/0.4633, allocations: 296.7 kB / 432.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02138/0.4847, allocations: 8.079 MB / 440.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05874/0.5434, allocations: 29.39 MB / 470.3 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01264/0.5561, allocations: 11.98 MB / 482.3 MB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005667/0.5618, allocations: 3.377 MB / 485.7 MB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01549/0.5773, allocations: 7.983 MB / 493.6 MB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.534e-05/0.5774, allocations: 68.97 kB / 493.7 MB, free: 7.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=305): time 7.013e-06/0.5775, allocations: 3.984 kB / 493.7 MB, free: 7.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=324): time 0.03554/0.613, allocations: 15.85 MB / 0.4976 GB, free: 7.191 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.6131, allocations: 85.95 kB / 0.4977 GB, free: 7.094 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007602/0.6207, allocations: 4 MB / 0.5016 GB, free: 3.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005735/0.6213, allocations: 81.7 kB / 0.5017 GB, free: 2.984 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00249/0.6238, allocations: 3.081 MB / 0.5047 GB, free: 15.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001308/0.6251, allocations: 1.096 MB / 0.5058 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001716/0.6268, allocations: 0.6767 MB / 0.5064 GB, free: 14.12 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.627, allocations: 301.1 kB / 0.5067 GB, free: 13.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003085/0.6301, allocations: 1.862 MB / 0.5085 GB, free: 11.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003586/0.6337, allocations: 2.844 MB / 0.5113 GB, free: 8.73 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006853/0.6405, allocations: 4.903 MB / 0.5161 GB, free: 3.523 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.492e-05/0.6406, allocations: 8 kB / 0.5161 GB, free: 3.516 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01144/0.652, allocations: 6.408 MB / 0.5224 GB, free: 13.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.191e-05/0.6521, allocations: 16 kB / 0.5224 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-05/0.6522, allocations: 28 kB / 0.5224 GB, free: 13.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002887/0.6551, allocations: 1.278 MB / 0.5237 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003135/0.6582, allocations: 0.8142 MB / 0.5245 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.174/0.8322, allocations: 20.73 MB / 0.5447 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00394/0.8362, allocations: 189.7 kB / 0.5449 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007357/0.837, allocations: 158 kB / 0.545 GB, free: 145.3 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.005815/0.8428, allocations: 2.178 MB / 0.5472 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001284/0.8441, allocations: 444.3 kB / 0.5476 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/0.8545, allocations: 6.052 MB / 0.5535 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.137e-05/0.8545, allocations: 31.53 kB / 0.5535 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.465e-05/0.8546, allocations: 17.98 kB / 0.5535 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.407e-05/0.8546, allocations: 17.95 kB / 0.5536 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02078/0.8754, allocations: 12.36 MB / 0.5656 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.8755, allocations: 2.438 kB / 0.5656 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001814/0.8773, allocations: 457.6 kB / 0.5661 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003627/0.8809, allocations: 1.618 MB / 0.5676 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003678/0.8813, allocations: 75.39 kB / 0.5677 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02031/0.9016, allocations: 30.18 MB / 0.5972 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.9017, allocations: 12 kB / 0.5972 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01195/0.9136, allocations: 8.642 MB / 0.6056 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002322/0.916, allocations: 0.9129 MB / 0.6065 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001084/0.9171, allocations: 72 kB / 0.6066 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/0.9194, allocations: 179.8 kB / 0.6068 GB, free: 100.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006704/0.92, allocations: 277.9 kB / 0.607 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000217/0.9203, allocations: 87.98 kB / 0.6071 GB, free: 100 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003784/0.9241, allocations: 2.717 MB / 0.6098 GB, free: 97.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9241, allocations: 0 / 0.6098 GB, free: 97.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00493/0.929, allocations: 1.331 MB / 0.6111 GB, free: 95.99 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.0007391/0.9298, allocations: 282.7 kB / 0.6113 GB, free: 95.71 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007546/0.9373, allocations: 6.314 MB / 0.6175 GB, free: 89.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.9374, allocations: 0 / 0.6175 GB, free: 89.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005776/0.9432, allocations: 4.786 MB / 0.6222 GB, free: 84.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006745/0.9499, allocations: 1.261 MB / 0.6234 GB, free: 82.96 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02193/0.9719, allocations: 16.28 MB / 0.6393 GB, free: 66.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004971/0.9769, allocations: 4.485 MB / 0.6437 GB, free: 62.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003757/0.9807, allocations: 1.054 MB / 0.6447 GB, free: 61.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008349/0.9816, allocations: 271.4 kB / 0.645 GB, free: 60.79 MB / 446.1 MB Notification: Performance of SimCode: time 1.272e-06/0.9816, allocations: 0 / 0.645 GB, free: 60.79 MB / 446.1 MB Notification: Performance of Templates: time 0.267/1.249, allocations: 71.19 MB / 0.7145 GB, free: 137.7 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)