Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001555/0.001555, allocations: 178.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.407/1.407, allocations: 194.5 MB / 211.6 MB, free: 3.059 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00161/0.00161, allocations: 112.5 kB / 256.9 MB, free: 4.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1588/0.1588, allocations: 38 MB / 340.1 MB, free: 1.363 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003507, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09196, allocations: 53.23 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3286/0.4206, allocations: 92.6 MB / 0.5368 GB, free: 2.504 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.4209, allocations: 95.08 kB / 0.5369 GB, free: 2.453 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02558/0.4464, allocations: 9.922 MB / 0.5466 GB, free: 9.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4465, allocations: 0 / 0.5466 GB, free: 9.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.8e-05/0.4465, allocations: 12 kB / 0.5466 GB, free: 9.969 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009812/0.4475, allocations: 0.636 MB / 0.5472 GB, free: 9.305 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.4476, allocations: 12.02 kB / 0.5472 GB, free: 9.293 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.274e-05/0.4476, allocations: 65.48 kB / 0.5473 GB, free: 9.238 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.686e-05/0.4477, allocations: 39.53 kB / 0.5473 GB, free: 9.199 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.449, allocations: 0.628 MB / 0.548 GB, free: 8.621 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.449, allocations: 19.75 kB / 0.548 GB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-05/0.4491, allocations: 26.75 kB / 0.548 GB, free: 8.594 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004593/0.4495, allocations: 342.7 kB / 0.5483 GB, free: 8.305 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.4496, allocations: 4 kB / 0.5483 GB, free: 8.301 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.4496, allocations: 16.42 kB / 0.5483 GB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.4496, allocations: 4 kB / 0.5484 GB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003007/0.4499, allocations: 199.6 kB / 0.5485 GB, free: 8.148 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.4514, allocations: 1.497 MB / 0.55 GB, free: 6.727 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003615/0.4517, allocations: 206.9 kB / 0.5502 GB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.4518, allocations: 0 / 0.5502 GB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.4518, allocations: 46.42 kB / 0.5502 GB, free: 6.477 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.282e-06/0.4518, allocations: 3.938 kB / 0.5502 GB, free: 6.473 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.001217/0.453, allocations: 0.8804 MB / 0.5511 GB, free: 5.617 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.089e-05/0.4531, allocations: 132.5 kB / 0.5512 GB, free: 5.457 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.4534, allocations: 270.5 kB / 0.5515 GB, free: 5.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.4534, allocations: 33.33 kB / 0.5515 GB, free: 5.195 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.4535, allocations: 211.4 kB / 0.5517 GB, free: 5.039 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.556e-05/0.4536, allocations: 73.23 kB / 0.5518 GB, free: 4.977 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.957e-06/0.4536, allocations: 7.125 kB / 0.5518 GB, free: 4.973 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.4538, allocations: 348.1 kB / 0.5521 GB, free: 4.637 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.381e-05/0.4539, allocations: 47.73 kB / 0.5522 GB, free: 4.605 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.454, allocations: 149.6 kB / 0.5523 GB, free: 4.438 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.4541, allocations: 77.55 kB / 0.5524 GB, free: 4.387 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.4541, allocations: 0 / 0.5524 GB, free: 4.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003412/0.4545, allocations: 261.4 kB / 0.5526 GB, free: 4.176 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.4545, allocations: 8.5 kB / 0.5527 GB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.4545, allocations: 11.98 kB / 0.5527 GB, free: 4.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.4546, allocations: 8 kB / 0.5527 GB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003339/0.4549, allocations: 75.16 kB / 0.5527 GB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008543/0.4558, allocations: 1.286 MB / 0.554 GB, free: 2.684 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001413/0.4559, allocations: 18.44 kB / 0.554 GB, free: 2.672 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.4559, allocations: 8 kB / 0.554 GB, free: 2.664 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001573/0.4561, allocations: 160.8 kB / 0.5542 GB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.177e-05/0.4562, allocations: 42.94 kB / 0.5542 GB, free: 2.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002865/0.4565, allocations: 186.8 kB / 0.5544 GB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.4565, allocations: 4 kB / 0.5544 GB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.4565, allocations: 4 kB / 0.5544 GB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.4565, allocations: 3.984 kB / 0.5544 GB, free: 2.328 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007108/0.4572, allocations: 0.5452 MB / 0.5549 GB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4572, allocations: 0 / 0.5549 GB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.4575, allocations: 47.94 kB / 0.555 GB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-06/0.4575, allocations: 8 kB / 0.555 GB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.4575, allocations: 3.5 kB / 0.555 GB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-06/0.4575, allocations: 11.98 kB / 0.555 GB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.4575, allocations: 0 / 0.555 GB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000454/0.458, allocations: 0.5312 MB / 0.5555 GB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.021e-05/0.4581, allocations: 104.7 kB / 0.5556 GB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/0.4581, allocations: 11.59 kB / 0.5556 GB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.4583, allocations: 7.953 kB / 0.5556 GB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.548e-05/0.4583, allocations: 11.55 kB / 0.5557 GB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.4584, allocations: 4 kB / 0.5557 GB, free: 1.109 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001881/0.4586, allocations: 222.8 kB / 0.5559 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4586, allocations: 4 kB / 0.5559 GB, free: 0.9336 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004227/0.459, allocations: 71.05 kB / 0.5559 GB, free: 0.8711 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (motor.phi_el,motor.w_el,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008481/0.4599, allocations: 1.299 MB / 0.5572 GB, free: 15.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003174/0.4602, allocations: 162.9 kB / 0.5574 GB, free: 15.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4602, allocations: 0 / 0.5574 GB, free: 15.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.646e-05/0.4603, allocations: 74.97 kB / 0.5574 GB, free: 15.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005018/0.4608, allocations: 81.66 kB / 0.5575 GB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.4642, allocations: 4.188 MB / 0.5616 GB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.4646, allocations: 0.8115 MB / 0.5624 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002097/0.4648, allocations: 46.95 kB / 0.5624 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.4649, allocations: 119.6 kB / 0.5626 GB, free: 10.36 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4649, allocations: 0 / 0.5626 GB, free: 10.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01756/0.4825, allocations: 6.821 MB / 0.5692 GB, free: 3.559 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002007/0.4827, allocations: 174.4 kB / 0.5694 GB, free: 3.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.006/2.488, allocations: 0 / 0.5694 GB, free: 3.32 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)