Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01021/0.01022, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001471/0.001471, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.776/1.776, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001792/0.001792, allocations: 47.94 kB / 326.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1344, allocations: 46.62 MB / 373.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.2934/0.4278, allocations: 7.085 MB / 380.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005581/0.4335, allocations: 2.391 MB / 382.6 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.4352, allocations: 20.22 kB / 382.7 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002128/0.4374, allocations: 0.5146 MB / 383.2 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001813/0.4392, allocations: 411.8 kB / 383.6 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006997/0.4399, allocations: 208 kB / 383.8 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002254/0.4422, allocations: 1.197 MB / 385 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009408/0.4432, allocations: 0.5051 MB / 385.5 MB, free: 7.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001196/0.4444, allocations: 465.2 kB / 385.9 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007874/0.4452, allocations: 0.4911 MB / 386.4 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001934/0.4454, allocations: 113.5 kB / 386.5 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004941/0.4459, allocations: 150.3 kB / 386.7 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002286/0.4461, allocations: 230.2 kB / 386.9 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006038/0.4467, allocations: 0.5489 MB / 387.5 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002571/0.4493, allocations: 1.432 MB / 388.9 MB, free: 5.863 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4493, allocations: 0 / 388.9 MB, free: 5.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.4494, allocations: 0 / 388.9 MB, free: 5.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.21e-05/0.4494, allocations: 1.25 kB / 388.9 MB, free: 5.863 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00276/0.4522, allocations: 1.239 MB / 390.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.866e-05/0.4522, allocations: 14.55 kB / 390.2 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006468/0.4529, allocations: 144.2 kB / 390.3 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001501/0.4544, allocations: 0.6474 MB / 390.9 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.084e-05/0.4545, allocations: 58.92 kB / 391 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/0.4547, allocations: 84.09 kB / 391.1 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001841/0.4565, allocations: 0.784 MB / 391.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.798e-05/0.4566, allocations: 2.094 kB / 391.9 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.431e-05/0.4567, allocations: 31.28 kB / 391.9 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.854e-05/0.4567, allocations: 20.84 kB / 391.9 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.458, allocations: 0.527 MB / 392.4 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005487/0.4635, allocations: 3.368 MB / 395.8 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006566/0.4642, allocations: 231 kB / 396 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002947/0.4645, allocations: 118 kB / 396.2 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.4646, allocations: 6.969 kB / 396.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.4646, allocations: 34.31 kB / 396.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/0.4646, allocations: 0 / 396.2 MB, free: 1.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.00301/0.4676, allocations: 1.048 MB / 397.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.546e-05/0.4677, allocations: 81.03 kB / 397.3 MB, free: 424 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001625/0.4694, allocations: 0.7328 MB / 398.1 MB, free: 88 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.4694, allocations: 31.05 kB / 398.1 MB, free: 52 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005991/0.47, allocations: 0.4913 MB / 398.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.4702, allocations: 109.1 kB / 398.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.4704, allocations: 123.1 kB / 398.8 MB, free: 15.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002695/0.4707, allocations: 378.5 kB / 399.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003191/0.471, allocations: 125 kB / 399.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006356/0.4717, allocations: 414.5 kB / 399.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.4727, allocations: 0.5699 MB / 400.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.4727, allocations: 7.219 kB / 400.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001335/0.474, allocations: 0.6117 MB / 400.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.4741, allocations: 9.625 kB / 400.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/0.4741, allocations: 9.625 kB / 400.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002142/0.4743, allocations: 32.02 kB / 400.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005022/0.4749, allocations: 144.7 kB / 401.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/0.4765, allocations: 1.39 MB / 402.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006677/0.4771, allocations: 38.25 kB / 402.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.488e-05/0.4772, allocations: 30.41 kB / 402.5 MB, free: 12.42 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005127/0.4777, allocations: 237.5 kB / 402.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.4779, allocations: 73.38 kB / 402.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000832/0.4787, allocations: 322.2 kB / 403.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.4788, allocations: 3.094 kB / 403.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.4788, allocations: 1.125 kB / 403.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4788, allocations: 1.969 kB / 403.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/0.4813, allocations: 1.095 MB / 404.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.4814, allocations: 2.312 kB / 404.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003276/0.4817, allocations: 65.23 kB / 404.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/0.4818, allocations: 23.14 kB / 404.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.341e-05/0.4819, allocations: 12.33 kB / 404.4 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.4832, allocations: 1.372 MB / 405.7 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/0.4832, allocations: 7.234 kB / 405.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.4845, allocations: 0.5575 MB / 406.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003132/0.4848, allocations: 177 kB / 406.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.931e-05/0.4849, allocations: 7.875 kB / 406.5 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003345/0.4852, allocations: 18.23 kB / 406.5 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.4854, allocations: 26.75 kB / 406.5 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.4854, allocations: 7.688 kB / 406.5 MB, free: 9.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001088/0.4865, allocations: 0.506 MB / 407 MB, free: 8.898 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.176e-06/0.4865, allocations: 1.25 kB / 407 MB, free: 8.898 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001169/0.4877, allocations: 165.4 kB / 407.2 MB, free: 8.879 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003816/0.4881, allocations: 117.4 kB / 407.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.4894, allocations: 470.7 kB / 407.8 MB, free: 8.504 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.4894, allocations: 1 kB / 407.8 MB, free: 8.504 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004453/0.4899, allocations: 231.6 kB / 408 MB, free: 8.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.4909, allocations: 196.5 kB / 408.2 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003376/0.4943, allocations: 1.411 MB / 409.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008862/0.4952, allocations: 0.9449 MB / 410.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004441/0.4957, allocations: 89.8 kB / 410.6 MB, free: 6.438 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.4958, allocations: 50.47 kB / 410.7 MB, free: 6.426 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4959, allocations: 0 / 410.7 MB, free: 6.426 MB / 334.1 MB Notification: Performance of Templates: time 0.0231/0.519, allocations: 8.266 MB / 418.9 MB, free: 0.793 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)