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: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 117.7 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001248, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2317/0.2317, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 75.88 kB / 480.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4215, allocations: 62.43 MB / 0.5305 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006908/0.4285, allocations: 4.545 MB / 0.5349 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003442/0.432, allocations: 1.643 MB / 0.5365 GB, free: 8.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004357/0.4324, allocations: 20.47 kB / 0.5366 GB, free: 8.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008619/0.4333, allocations: 298.8 kB / 0.5368 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003705/0.4337, allocations: 160.5 kB / 0.537 GB, free: 8.133 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000491/0.4342, allocations: 269 kB / 0.5372 GB, free: 7.902 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000873/0.4351, allocations: 0.8446 MB / 0.5381 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005596/0.4357, allocations: 396.8 kB / 0.5385 GB, free: 7.117 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004284/0.4361, allocations: 313.6 kB / 0.5388 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003587/0.4365, allocations: 341 kB / 0.5391 GB, free: 6.648 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.4366, allocations: 81.16 kB / 0.5392 GB, free: 6.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001288/0.4367, allocations: 79.69 kB / 0.5392 GB, free: 6.648 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.4369, allocations: 170.9 kB / 0.5394 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003122/0.4372, allocations: 373.4 kB / 0.5397 GB, free: 6.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.4383, allocations: 0.9317 MB / 0.5407 GB, free: 5.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.4383, allocations: 1.062 kB / 0.5407 GB, free: 5.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4383, allocations: 0 / 0.5407 GB, free: 5.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.4383, allocations: 0 / 0.5407 GB, free: 5.48 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.001763/0.4401, allocations: 1.015 MB / 0.5417 GB, free: 4.656 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.4402, allocations: 9.906 kB / 0.5417 GB, free: 4.656 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001111/0.4403, allocations: 102.5 kB / 0.5418 GB, free: 4.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.4404, allocations: 84.97 kB / 0.5418 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007997/0.4412, allocations: 0.5062 MB / 0.5423 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.414e-05/0.4413, allocations: 42.03 kB / 0.5424 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.899e-05/0.4414, allocations: 64.16 kB / 0.5424 GB, free: 4.039 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/0.4424, allocations: 0.5935 MB / 0.543 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.4425, allocations: 5.312 kB / 0.543 GB, free: 3.664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.325e-05/0.4425, allocations: 25.91 kB / 0.543 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.4426, allocations: 17.47 kB / 0.5431 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008729/0.4434, allocations: 427.8 kB / 0.5435 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003054/0.4465, allocations: 2.139 MB / 0.5456 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.4477, allocations: 0.5592 MB / 0.5461 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003967/0.4481, allocations: 177.8 kB / 0.5463 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.4482, allocations: 7.344 kB / 0.5463 GB, free: 1.211 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.4482, allocations: 40.86 kB / 0.5463 GB, free: 1.164 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.994e-06/0.4482, allocations: 1.125 kB / 0.5463 GB, free: 1.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002386/0.4506, allocations: 1.127 MB / 0.5474 GB, free: 108 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.4507, allocations: 55.41 kB / 0.5475 GB, free: 40 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005807/0.4513, allocations: 0.5222 MB / 0.548 GB, free: 15.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.4513, allocations: 33.7 kB / 0.548 GB, free: 15.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/0.4515, allocations: 340.2 kB / 0.5483 GB, free: 15.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.56e-05/0.4516, allocations: 122.2 kB / 0.5485 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.4517, allocations: 78.05 kB / 0.5485 GB, free: 14.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.4519, allocations: 362.8 kB / 0.5489 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003204/0.4522, allocations: 150.5 kB / 0.549 GB, free: 14.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003388/0.4526, allocations: 224.8 kB / 0.5492 GB, free: 14.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006269/0.4532, allocations: 364.1 kB / 0.5496 GB, free: 13.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.4532, allocations: 7.938 kB / 0.5496 GB, free: 13.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008289/0.454, allocations: 477.1 kB / 0.55 GB, free: 13.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.4541, allocations: 8 kB / 0.5501 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.4541, allocations: 0 / 0.5501 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001493/0.4542, allocations: 29.12 kB / 0.5501 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004163/0.4547, allocations: 103.9 kB / 0.5502 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.4557, allocations: 1.372 MB / 0.5515 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.456, allocations: 24.02 kB / 0.5515 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.456, allocations: 12 kB / 0.5516 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003605/0.4564, allocations: 261 kB / 0.5518 GB, free: 11.35 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002723/0.4566, allocations: 207 kB / 0.552 GB, free: 11.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004689/0.4571, allocations: 328 kB / 0.5523 GB, free: 10.76 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.136e-06/0.4571, allocations: 7.922 kB / 0.5523 GB, free: 10.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0006934/0.4578, allocations: 450.5 kB / 0.5527 GB, free: 10.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.998e-06/0.4578, allocations: 10.38 kB / 0.5528 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.4579, allocations: 4 kB / 0.5528 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.236e-05/0.4579, allocations: 24.84 kB / 0.5528 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003299/0.4583, allocations: 95.89 kB / 0.5529 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008765/0.4592, allocations: 1.376 MB / 0.5542 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.4594, allocations: 19.94 kB / 0.5542 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.4594, allocations: 12 kB / 0.5543 GB, free: 8.621 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.0001502/0.4596, allocations: 210.1 kB / 0.5545 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.877e-05/0.4596, allocations: 63.33 kB / 0.5545 GB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.4598, allocations: 53.28 kB / 0.5546 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.4598, allocations: 4 kB / 0.5546 GB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.4598, allocations: 3.938 kB / 0.5546 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.4598, allocations: 3.984 kB / 0.5546 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.4614, allocations: 1.071 MB / 0.5556 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.4614, allocations: 0 / 0.5556 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.4617, allocations: 71.89 kB / 0.5557 GB, free: 7.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.788e-05/0.4618, allocations: 24.92 kB / 0.5557 GB, free: 7.047 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.4619, allocations: 11.98 kB / 0.5557 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009167/0.4628, allocations: 1.371 MB / 0.5571 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.4628, allocations: 4.031 kB / 0.5571 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.4638, allocations: 0.6316 MB / 0.5577 GB, free: 4.863 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/0.464, allocations: 136.4 kB / 0.5578 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.574e-05/0.464, allocations: 4 kB / 0.5578 GB, free: 4.707 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.4643, allocations: 35.97 kB / 0.5579 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.393e-05/0.4644, allocations: 15.97 kB / 0.5579 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.4644, allocations: 12 kB / 0.5579 GB, free: 4.645 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004286/0.4648, allocations: 366.9 kB / 0.5582 GB, free: 4.289 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4648, allocations: 3.938 kB / 0.5582 GB, free: 4.285 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006097/0.4654, allocations: 176 kB / 0.5584 GB, free: 4.113 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.001316/0.4668, allocations: 1.175 MB / 0.5595 GB, free: 2.898 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.468, allocations: 0.7435 MB / 0.5603 GB, free: 2.129 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4681, allocations: 0 / 0.5603 GB, free: 2.129 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004128/0.4685, allocations: 267.6 kB / 0.5605 GB, free: 1.855 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006367/0.4691, allocations: 112.2 kB / 0.5606 GB, free: 1.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006835/0.476, allocations: 4.989 MB / 0.5655 GB, free: 12.59 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.4764, allocations: 0.8863 MB / 0.5664 GB, free: 11.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002416/0.4767, allocations: 64.36 kB / 0.5664 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002923/0.477, allocations: 231.4 kB / 0.5667 GB, free: 11.39 MB / 430.1 MB Notification: Performance of SimCode: time 3e-07/0.477, allocations: 0 / 0.5667 GB, free: 11.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03439/0.5114, allocations: 11.29 MB / 0.5777 GB, free: 260 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.74, allocations: 6.125 kB / 0.5777 GB, free: 256 kB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)