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.001191/0.00119, allocations: 118.2 kB / 17.78 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2452/0.2452, allocations: 46.11 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 79.81 kB / 481.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4614/0.4635, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.00688/0.4704, allocations: 4.538 MB / 0.5354 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003468/0.474, allocations: 1.656 MB / 0.537 GB, free: 8.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004245/0.4744, allocations: 16.38 kB / 0.537 GB, free: 8.668 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009154/0.4754, allocations: 302.9 kB / 0.5373 GB, free: 8.441 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003854/0.4758, allocations: 172.6 kB / 0.5375 GB, free: 8.289 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005256/0.4763, allocations: 263.9 kB / 0.5377 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.4775, allocations: 0.8459 MB / 0.5386 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007601/0.4782, allocations: 393.5 kB / 0.539 GB, free: 7.281 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006553/0.4789, allocations: 306.1 kB / 0.5392 GB, free: 7.082 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004904/0.4794, allocations: 345.1 kB / 0.5396 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001611/0.4796, allocations: 80.09 kB / 0.5396 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.4797, allocations: 82.09 kB / 0.5397 GB, free: 6.816 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001846/0.4799, allocations: 177.6 kB / 0.5399 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004324/0.4804, allocations: 369.7 kB / 0.5402 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001253/0.4816, allocations: 0.926 MB / 0.5412 GB, free: 5.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.4816, allocations: 0 / 0.5412 GB, free: 5.652 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4816, allocations: 1.094 kB / 0.5412 GB, free: 5.652 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.4817, allocations: 7.938 kB / 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.001848/0.4835, allocations: 1.011 MB / 0.5421 GB, free: 4.824 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.4836, allocations: 9.531 kB / 0.5422 GB, free: 4.824 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.4838, allocations: 85.06 kB / 0.5422 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008752/0.4847, allocations: 0.5059 MB / 0.5427 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.729e-05/0.4847, allocations: 46.34 kB / 0.5428 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.4848, allocations: 59.91 kB / 0.5428 GB, free: 4.297 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.486, allocations: 0.5971 MB / 0.5434 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.486, allocations: 8.906 kB / 0.5434 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.556e-05/0.4861, allocations: 26.38 kB / 0.5435 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.333e-05/0.4861, allocations: 18.41 kB / 0.5435 GB, free: 3.891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009234/0.4871, allocations: 423.1 kB / 0.5439 GB, free: 3.695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003152/0.4902, allocations: 2.135 MB / 0.546 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.4915, allocations: 0.5662 MB / 0.5465 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003453/0.4919, allocations: 169.7 kB / 0.5467 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.84e-05/0.4919, allocations: 4 kB / 0.5467 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.492, allocations: 38.56 kB / 0.5467 GB, free: 1.348 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.643e-06/0.492, allocations: 0 / 0.5467 GB, free: 1.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002299/0.4943, allocations: 1.13 MB / 0.5478 GB, free: 144 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.4944, allocations: 55.41 kB / 0.5479 GB, free: 76 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007524/0.4951, allocations: 0.5183 MB / 0.5484 GB, free: 15.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.849e-05/0.4952, allocations: 37.7 kB / 0.5484 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002754/0.4955, allocations: 336.2 kB / 0.5487 GB, free: 15.17 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.4956, allocations: 126.2 kB / 0.5489 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.4957, allocations: 74.14 kB / 0.5489 GB, free: 14.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.4959, allocations: 370.7 kB / 0.5493 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003113/0.4962, allocations: 146.5 kB / 0.5494 GB, free: 14.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003823/0.4966, allocations: 220.9 kB / 0.5496 GB, free: 14.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006488/0.4973, allocations: 360.2 kB / 0.55 GB, free: 13.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.4973, allocations: 7.938 kB / 0.55 GB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008825/0.4982, allocations: 481.2 kB / 0.5504 GB, free: 13.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.4982, allocations: 8 kB / 0.5504 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.4982, allocations: 0 / 0.5504 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001682/0.4984, allocations: 28.84 kB / 0.5505 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004078/0.4988, allocations: 99.88 kB / 0.5506 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.5, allocations: 1.372 MB / 0.5519 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.5003, allocations: 28.11 kB / 0.5519 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.5003, allocations: 23.94 kB / 0.552 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000437/0.5008, allocations: 257 kB / 0.5522 GB, free: 11.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002877/0.5011, allocations: 206.8 kB / 0.5524 GB, free: 11.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005167/0.5016, allocations: 332 kB / 0.5527 GB, free: 10.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.824e-06/0.5016, allocations: 0 / 0.5527 GB, free: 10.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007075/0.5023, allocations: 450.2 kB / 0.5531 GB, free: 10.34 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.5024, allocations: 4 kB / 0.5531 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.5024, allocations: 4 kB / 0.5532 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.444e-05/0.5025, allocations: 28.84 kB / 0.5532 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003434/0.5028, allocations: 96.23 kB / 0.5533 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009587/0.5038, allocations: 1.382 MB / 0.5546 GB, free: 8.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.504, allocations: 19.94 kB / 0.5546 GB, free: 8.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.504, allocations: 16 kB / 0.5547 GB, free: 8.645 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.0001549/0.5042, allocations: 198.1 kB / 0.5548 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.89e-05/0.5043, allocations: 55.34 kB / 0.5549 GB, free: 8.391 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001687/0.5045, allocations: 53.28 kB / 0.5549 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.5045, allocations: 4 kB / 0.555 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.5045, allocations: 8 kB / 0.555 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.5045, allocations: 7.984 kB / 0.555 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001686/0.5062, allocations: 1.071 MB / 0.556 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.5062, allocations: 0 / 0.556 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003635/0.5066, allocations: 67.89 kB / 0.5561 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.816e-05/0.5066, allocations: 20.86 kB / 0.5561 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.5067, allocations: 8 kB / 0.5561 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.5077, allocations: 1.378 MB / 0.5575 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.5077, allocations: 4.188 kB / 0.5575 GB, free: 5.559 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.5088, allocations: 0.6277 MB / 0.5581 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.509, allocations: 140.4 kB / 0.5582 GB, free: 4.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/0.509, allocations: 8 kB / 0.5582 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.5093, allocations: 27.97 kB / 0.5582 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.428e-05/0.5094, allocations: 19.97 kB / 0.5583 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.5094, allocations: 11.94 kB / 0.5583 GB, free: 4.684 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004837/0.5099, allocations: 370.9 kB / 0.5586 GB, free: 4.324 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5099, allocations: 0 / 0.5586 GB, free: 4.324 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000669/0.5106, allocations: 180 kB / 0.5588 GB, free: 4.148 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.0001508/0.5108, allocations: 110.1 kB / 0.5589 GB, free: 4.031 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.5121, allocations: 0.7402 MB / 0.5596 GB, free: 3.266 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.5121, allocations: 0 / 0.5596 GB, free: 3.266 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004348/0.5126, allocations: 278.7 kB / 0.5599 GB, free: 2.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006351/0.5132, allocations: 110.1 kB / 0.56 GB, free: 2.879 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.5153, allocations: 1.27 MB / 0.5612 GB, free: 1.574 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005069/0.5158, allocations: 0.8902 MB / 0.5621 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002278/0.5161, allocations: 64.36 kB / 0.5622 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.5162, allocations: 35.44 kB / 0.5622 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of SimCode: time 2e-07/0.5162, allocations: 0 / 0.5622 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of Templates: time 0.01082/0.527, allocations: 5.598 MB / 0.5677 GB, free: 10.99 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)