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.001145/0.001145, allocations: 118.2 kB / 17.79 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 206 kB / 18.74 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2141/0.2141, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 75.88 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5381/0.5396, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006543/0.5462, allocations: 4.538 MB / 0.5354 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003605/0.5498, allocations: 1.659 MB / 0.537 GB, free: 8.668 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005212/0.5504, allocations: 20.88 kB / 0.537 GB, free: 8.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009664/0.5514, allocations: 294.9 kB / 0.5373 GB, free: 8.438 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004292/0.5518, allocations: 157.3 kB / 0.5375 GB, free: 8.297 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005709/0.5524, allocations: 271.8 kB / 0.5377 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009856/0.5534, allocations: 0.8448 MB / 0.5386 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006752/0.5541, allocations: 393.8 kB / 0.5389 GB, free: 7.285 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005617/0.5547, allocations: 300.4 kB / 0.5392 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000417/0.5551, allocations: 349 kB / 0.5396 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.5552, allocations: 80.69 kB / 0.5396 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.5554, allocations: 81 kB / 0.5397 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.5555, allocations: 170.4 kB / 0.5399 GB, free: 6.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003271/0.5559, allocations: 374.1 kB / 0.5402 GB, free: 6.391 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001165/0.557, allocations: 0.9379 MB / 0.5411 GB, free: 5.648 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.5571, allocations: 5 kB / 0.5412 GB, free: 5.645 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.5571, allocations: 0 / 0.5412 GB, free: 5.645 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.5571, allocations: 0 / 0.5412 GB, free: 5.645 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.002065/0.5592, allocations: 1.037 MB / 0.5422 GB, free: 4.797 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.65e-05/0.5592, allocations: 14.12 kB / 0.5422 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.5594, allocations: 85.17 kB / 0.5423 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008318/0.5603, allocations: 0.4948 MB / 0.5427 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.265e-05/0.5603, allocations: 49.66 kB / 0.5428 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/0.5605, allocations: 68.17 kB / 0.5429 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.5618, allocations: 0.5938 MB / 0.5434 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.116e-05/0.5618, allocations: 1.344 kB / 0.5434 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.853e-05/0.5619, allocations: 22 kB / 0.5435 GB, free: 3.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.784e-05/0.5619, allocations: 18.41 kB / 0.5435 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.563, allocations: 427.5 kB / 0.5439 GB, free: 3.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003717/0.5667, allocations: 2.139 MB / 0.546 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.5681, allocations: 0.5629 MB / 0.5465 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003517/0.5685, allocations: 182.9 kB / 0.5467 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.086e-05/0.5685, allocations: 7.984 kB / 0.5467 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.5686, allocations: 38.5 kB / 0.5467 GB, free: 1.293 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 3.286e-06/0.5686, allocations: 0 / 0.5467 GB, free: 1.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002583/0.5712, allocations: 1.143 MB / 0.5479 GB, free: 76 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/0.5712, allocations: 55.41 kB / 0.5479 GB, free: 8 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007345/0.572, allocations: 0.5223 MB / 0.5484 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.572, allocations: 29.7 kB / 0.5484 GB, free: 15.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/0.5723, allocations: 352.7 kB / 0.5488 GB, free: 15.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.5725, allocations: 130.9 kB / 0.5489 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.5727, allocations: 74.09 kB / 0.549 GB, free: 14.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002661/0.573, allocations: 366.8 kB / 0.5493 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003906/0.5734, allocations: 146.5 kB / 0.5495 GB, free: 14.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004723/0.5738, allocations: 228.8 kB / 0.5497 GB, free: 14.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008269/0.5747, allocations: 356.2 kB / 0.55 GB, free: 13.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.996e-06/0.5747, allocations: 3.938 kB / 0.55 GB, free: 13.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001116/0.5758, allocations: 485.4 kB / 0.5505 GB, free: 13.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.5759, allocations: 4 kB / 0.5505 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.5759, allocations: 4.281 kB / 0.5505 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.5762, allocations: 28.78 kB / 0.5505 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/0.5766, allocations: 99.88 kB / 0.5506 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.5779, allocations: 1.38 MB / 0.552 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000317/0.5783, allocations: 19.98 kB / 0.552 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.5783, allocations: 16 kB / 0.552 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000446/0.5788, allocations: 257 kB / 0.5523 GB, free: 11.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003171/0.5791, allocations: 210.8 kB / 0.5525 GB, free: 11.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005104/0.5796, allocations: 332 kB / 0.5528 GB, free: 10.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.128e-06/0.5796, allocations: 0 / 0.5528 GB, free: 10.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007558/0.5804, allocations: 450.8 kB / 0.5532 GB, free: 10.26 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.5804, allocations: 8 kB / 0.5532 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.5804, allocations: 8 kB / 0.5532 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.939e-05/0.5805, allocations: 24.78 kB / 0.5532 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003361/0.5809, allocations: 91.89 kB / 0.5533 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.5821, allocations: 1.383 MB / 0.5547 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.5823, allocations: 12.09 kB / 0.5547 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.5824, allocations: 23.98 kB / 0.5547 GB, free: 8.566 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.0002001/0.5826, allocations: 206 kB / 0.5549 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.576e-05/0.5827, allocations: 51.67 kB / 0.555 GB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.5828, allocations: 61.28 kB / 0.555 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.5828, allocations: 4 kB / 0.555 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.5828, allocations: 3.938 kB / 0.555 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.5828, allocations: 3.984 kB / 0.555 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.5847, allocations: 1.067 MB / 0.5561 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.5848, allocations: 4.062 kB / 0.5561 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000347/0.5851, allocations: 75.89 kB / 0.5561 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.551e-05/0.5852, allocations: 12.86 kB / 0.5562 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.312e-05/0.5853, allocations: 12 kB / 0.5562 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.5863, allocations: 1.382 MB / 0.5575 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.5863, allocations: 3.938 kB / 0.5575 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.5874, allocations: 0.632 MB / 0.5581 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/0.5876, allocations: 144.7 kB / 0.5583 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.509e-05/0.5877, allocations: 8 kB / 0.5583 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.5879, allocations: 23.97 kB / 0.5583 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.207e-05/0.588, allocations: 23.97 kB / 0.5583 GB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.5881, allocations: 8 kB / 0.5583 GB, free: 4.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004695/0.5885, allocations: 362.9 kB / 0.5587 GB, free: 4.238 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5885, allocations: 0 / 0.5587 GB, free: 4.238 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007323/0.5893, allocations: 188 kB / 0.5589 GB, free: 4.055 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.0001726/0.5895, allocations: 101.7 kB / 0.559 GB, free: 3.945 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.5909, allocations: 0.7355 MB / 0.5597 GB, free: 3.184 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.5909, allocations: 0 / 0.5597 GB, free: 3.184 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004457/0.5914, allocations: 283.6 kB / 0.56 GB, free: 2.895 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007259/0.5921, allocations: 111 kB / 0.5601 GB, free: 2.789 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00253/0.5947, allocations: 1.295 MB / 0.5613 GB, free: 1.457 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005258/0.5952, allocations: 0.8902 MB / 0.5622 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002818/0.5955, allocations: 64.36 kB / 0.5623 GB, free: 484 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.5956, allocations: 39.44 kB / 0.5623 GB, free: 444 kB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.5956, allocations: 0 / 0.5623 GB, free: 444 kB / 414.1 MB Notification: Performance of Templates: time 0.01382/0.6095, allocations: 5.581 MB / 0.5677 GB, free: 10.89 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)