Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00144/0.00144, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001539, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 247.6 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2266/0.2266, allocations: 46.1 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 83.81 kB / 482 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4398/0.4412, allocations: 62.42 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006755/0.448, allocations: 4.55 MB / 0.5361 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004342/0.4524, allocations: 1.652 MB / 0.5377 GB, free: 8.652 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.4536, allocations: 20.56 kB / 0.5377 GB, free: 8.645 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001254/0.4549, allocations: 290.6 kB / 0.538 GB, free: 8.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008786/0.4558, allocations: 172.8 kB / 0.5382 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007428/0.4566, allocations: 276 kB / 0.5384 GB, free: 8.039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.4579, allocations: 0.8461 MB / 0.5392 GB, free: 7.504 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007018/0.4586, allocations: 389 kB / 0.5396 GB, free: 7.262 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006423/0.4592, allocations: 310.4 kB / 0.5399 GB, free: 7.059 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004302/0.4597, allocations: 341.2 kB / 0.5402 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.4598, allocations: 84.94 kB / 0.5403 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.46, allocations: 79.94 kB / 0.5404 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000159/0.4601, allocations: 173.8 kB / 0.5406 GB, free: 6.641 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003796/0.4605, allocations: 367.1 kB / 0.5409 GB, free: 6.367 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.4617, allocations: 0.9334 MB / 0.5418 GB, free: 5.629 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.4618, allocations: 0 / 0.5418 GB, free: 5.629 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4618, allocations: 0 / 0.5418 GB, free: 5.629 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.4618, allocations: 1 kB / 0.5418 GB, free: 5.629 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002129/0.4639, allocations: 1.018 MB / 0.5428 GB, free: 4.801 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.464, allocations: 13.59 kB / 0.5428 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001972/0.4642, allocations: 84.88 kB / 0.5429 GB, free: 4.754 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.4652, allocations: 0.4948 MB / 0.5434 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.169e-05/0.4653, allocations: 49.47 kB / 0.5434 GB, free: 4.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.4654, allocations: 65.12 kB / 0.5435 GB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.4667, allocations: 0.5933 MB / 0.5441 GB, free: 3.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/0.4667, allocations: 5 kB / 0.5441 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.486e-05/0.4668, allocations: 21.78 kB / 0.5441 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/0.4668, allocations: 14.34 kB / 0.5441 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009732/0.4678, allocations: 431 kB / 0.5445 GB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003875/0.4717, allocations: 2.143 MB / 0.5466 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.4729, allocations: 0.5633 MB / 0.5472 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003373/0.4732, allocations: 167.2 kB / 0.5473 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.274e-05/0.4733, allocations: 4 kB / 0.5473 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.4733, allocations: 42.5 kB / 0.5474 GB, free: 1.293 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 3.556e-06/0.4734, allocations: 0 / 0.5474 GB, free: 1.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002447/0.4758, allocations: 1.134 MB / 0.5485 GB, free: 84 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.365e-05/0.4759, allocations: 55.41 kB / 0.5485 GB, free: 16 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007277/0.4766, allocations: 0.5183 MB / 0.549 GB, free: 15.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.4767, allocations: 33.7 kB / 0.5491 GB, free: 15.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/0.477, allocations: 344.2 kB / 0.5494 GB, free: 15.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.4771, allocations: 118.2 kB / 0.5495 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.4772, allocations: 70.14 kB / 0.5496 GB, free: 14.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.4774, allocations: 366.8 kB / 0.5499 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003136/0.4777, allocations: 146.5 kB / 0.5501 GB, free: 14.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003541/0.4781, allocations: 228.8 kB / 0.5503 GB, free: 14.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006249/0.4787, allocations: 356.2 kB / 0.5506 GB, free: 13.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.4787, allocations: 3.938 kB / 0.5506 GB, free: 13.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008581/0.4796, allocations: 485 kB / 0.5511 GB, free: 13.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.4796, allocations: 8 kB / 0.5511 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.4796, allocations: 7.922 kB / 0.5511 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000168/0.4798, allocations: 25.12 kB / 0.5511 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004148/0.4803, allocations: 103.9 kB / 0.5512 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.4815, allocations: 1.376 MB / 0.5526 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.4818, allocations: 23.98 kB / 0.5526 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.4819, allocations: 19.98 kB / 0.5526 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004276/0.4823, allocations: 253 kB / 0.5529 GB, free: 11.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003046/0.4826, allocations: 207 kB / 0.5531 GB, free: 11.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005209/0.4832, allocations: 332 kB / 0.5534 GB, free: 10.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.614e-06/0.4832, allocations: 3.938 kB / 0.5534 GB, free: 10.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007534/0.4839, allocations: 450.4 kB / 0.5538 GB, free: 10.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.4839, allocations: 7.938 kB / 0.5538 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.484, allocations: 4 kB / 0.5538 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.333e-05/0.484, allocations: 20.84 kB / 0.5538 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003649/0.4844, allocations: 91.89 kB / 0.5539 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/0.4855, allocations: 1.38 MB / 0.5553 GB, free: 8.637 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.4858, allocations: 15.94 kB / 0.5553 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.688e-05/0.4858, allocations: 20.16 kB / 0.5553 GB, free: 8.602 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0002049/0.486, allocations: 205.9 kB / 0.5555 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.965e-05/0.4861, allocations: 55.34 kB / 0.5556 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.4863, allocations: 57.28 kB / 0.5556 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.4863, allocations: 7.984 kB / 0.5556 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.4863, allocations: 3.938 kB / 0.5556 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.4863, allocations: 3.984 kB / 0.5556 GB, free: 8.266 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.4883, allocations: 1.067 MB / 0.5567 GB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.4883, allocations: 4 kB / 0.5567 GB, free: 7.129 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.4887, allocations: 75.95 kB / 0.5567 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001054/0.4888, allocations: 16.86 kB / 0.5568 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.759e-05/0.4889, allocations: 11.98 kB / 0.5568 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00127/0.4901, allocations: 1.378 MB / 0.5581 GB, free: 5.504 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.4902, allocations: 4.031 kB / 0.5581 GB, free: 5.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.4913, allocations: 0.62 MB / 0.5587 GB, free: 4.855 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001648/0.4914, allocations: 140.4 kB / 0.5589 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.4915, allocations: 8 kB / 0.5589 GB, free: 4.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002825/0.4918, allocations: 27.97 kB / 0.5589 GB, free: 4.664 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.196e-05/0.4919, allocations: 19.97 kB / 0.5589 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.4919, allocations: 8 kB / 0.5589 GB, free: 4.637 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005933/0.4925, allocations: 370.9 kB / 0.5593 GB, free: 4.277 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4925, allocations: 0 / 0.5593 GB, free: 4.277 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008222/0.4934, allocations: 176 kB / 0.5594 GB, free: 4.105 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.y) * 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 (32): * Single equations (assignments): 31 * 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.000215/0.4936, allocations: 116.5 kB / 0.5596 GB, free: 3.984 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.4951, allocations: 0.7355 MB / 0.5603 GB, free: 3.223 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.407e-05/0.4952, allocations: 8 kB / 0.5603 GB, free: 3.215 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004512/0.4956, allocations: 271.6 kB / 0.5605 GB, free: 2.938 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007348/0.4964, allocations: 123.7 kB / 0.5607 GB, free: 2.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.4991, allocations: 1.306 MB / 0.5619 GB, free: 1.473 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005866/0.4997, allocations: 0.8863 MB / 0.5628 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.4998, allocations: 43.42 kB / 0.5628 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4998, allocations: 0 / 0.5628 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of Templates: time 0.01665/0.5165, allocations: 9.583 MB / 0.5722 GB, free: 6.934 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)