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.00214/0.00214, allocations: 182.7 kB / 13.64 MB, free: 1.676 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.89/1.89, allocations: 194.3 MB / 208.4 MB, free: 6.715 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.001982/0.001983, allocations: 124.7 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1835/0.1835, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.678e-05/4.685e-05, allocations: 3.938 kB / 397.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3042, allocations: 53.22 MB / 450.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1378/0.4421, allocations: 92.51 MB / 0.5306 GB, free: 0.793 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/0.4424, allocations: 99.8 kB / 0.5307 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3051/0.7476, allocations: 9.92 MB / 0.5404 GB, free: 87.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.7476, allocations: 0 / 0.5404 GB, free: 87.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.065e-05/0.7476, allocations: 15.5 kB / 0.5404 GB, free: 87.19 MB / 378.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.0008437/0.7485, allocations: 0.5729 MB / 0.541 GB, free: 86.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.7486, allocations: 13.77 kB / 0.541 GB, free: 86.67 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.775e-05/0.7486, allocations: 63.42 kB / 0.5411 GB, free: 86.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.967e-05/0.7487, allocations: 43.62 kB / 0.5411 GB, free: 86.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.75, allocations: 0.6032 MB / 0.5417 GB, free: 86.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.7501, allocations: 20.12 kB / 0.5417 GB, free: 86.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.701e-05/0.7501, allocations: 35.12 kB / 0.5417 GB, free: 86.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004387/0.7506, allocations: 342.9 kB / 0.5421 GB, free: 85.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.7506, allocations: 4 kB / 0.5421 GB, free: 85.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.7506, allocations: 11.31 kB / 0.5421 GB, free: 85.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.7506, allocations: 4.688 kB / 0.5421 GB, free: 85.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002806/0.7509, allocations: 194.2 kB / 0.5423 GB, free: 85.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.7522, allocations: 1.492 MB / 0.5437 GB, free: 84.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.7525, allocations: 198.7 kB / 0.5439 GB, free: 84.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.02e-05/0.7526, allocations: 70.56 kB / 0.544 GB, free: 84.17 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.7527, allocations: 7.828 kB / 0.544 GB, free: 84.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.7527, allocations: 46.39 kB / 0.544 GB, free: 84.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 2.184e-06/0.7527, allocations: 0 / 0.544 GB, free: 84.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001027/0.7537, allocations: 0.8345 MB / 0.5449 GB, free: 83.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.7538, allocations: 140.4 kB / 0.545 GB, free: 83.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.754, allocations: 268.6 kB / 0.5452 GB, free: 83.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.754, allocations: 29.67 kB / 0.5453 GB, free: 83.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.709e-05/0.7541, allocations: 211.1 kB / 0.5455 GB, free: 82.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.653e-05/0.7542, allocations: 66.75 kB / 0.5455 GB, free: 82.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.758e-06/0.7542, allocations: 7.688 kB / 0.5455 GB, free: 82.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.054e-05/0.7543, allocations: 342.6 kB / 0.5459 GB, free: 82.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.468e-05/0.7543, allocations: 47.19 kB / 0.5459 GB, free: 82.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.7545, allocations: 151 kB / 0.5461 GB, free: 82.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.7546, allocations: 78.16 kB / 0.5461 GB, free: 82.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.7546, allocations: 0 / 0.5461 GB, free: 82.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002984/0.7549, allocations: 258.5 kB / 0.5464 GB, free: 82.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.7549, allocations: 7.719 kB / 0.5464 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.7549, allocations: 4.312 kB / 0.5464 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.7549, allocations: 7.875 kB / 0.5464 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003145/0.7553, allocations: 81.89 kB / 0.5465 GB, free: 82.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006471/0.7559, allocations: 1.273 MB / 0.5477 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.7561, allocations: 19.66 kB / 0.5477 GB, free: 80.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.7561, allocations: 11.86 kB / 0.5478 GB, free: 80.7 MB / 378.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 () * 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 7.182e-05/0.7562, allocations: 132.4 kB / 0.5479 GB, free: 80.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.019e-05/0.7563, allocations: 34.95 kB / 0.5479 GB, free: 80.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002918/0.7566, allocations: 195.8 kB / 0.5481 GB, free: 80.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.7566, allocations: 3.844 kB / 0.5481 GB, free: 80.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.7566, allocations: 3.844 kB / 0.5481 GB, free: 80.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.7566, allocations: 0 / 0.5481 GB, free: 80.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006448/0.7573, allocations: 0.5447 MB / 0.5486 GB, free: 79.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.7573, allocations: 0 / 0.5486 GB, free: 79.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.7575, allocations: 55.09 kB / 0.5487 GB, free: 79.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.7575, allocations: 4.031 kB / 0.5487 GB, free: 79.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.7575, allocations: 3.719 kB / 0.5487 GB, free: 79.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.7575, allocations: 0 / 0.5487 GB, free: 79.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.7576, allocations: 3.812 kB / 0.5487 GB, free: 79.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000386/0.7579, allocations: 0.5275 MB / 0.5492 GB, free: 79.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.034e-05/0.758, allocations: 108.8 kB / 0.5493 GB, free: 79.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.7581, allocations: 4 kB / 0.5493 GB, free: 79.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.7583, allocations: 7.953 kB / 0.5493 GB, free: 79.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.022e-05/0.7583, allocations: 11.98 kB / 0.5493 GB, free: 79.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.7583, allocations: 8 kB / 0.5494 GB, free: 79.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001706/0.7585, allocations: 210.2 kB / 0.5496 GB, free: 79.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7585, allocations: 4 kB / 0.5496 GB, free: 79.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004287/0.7589, allocations: 71.98 kB / 0.5496 GB, free: 78.97 MB / 378.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 () * 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.0007206/0.7597, allocations: 1.298 MB / 0.5509 GB, free: 77.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003246/0.76, allocations: 157 kB / 0.551 GB, free: 77.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.76, allocations: 4.875 kB / 0.551 GB, free: 77.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.451e-05/0.7601, allocations: 71.94 kB / 0.5511 GB, free: 77.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005606/0.7607, allocations: 79.8 kB / 0.5512 GB, free: 77.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.7623, allocations: 0.6945 MB / 0.5519 GB, free: 76.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.7627, allocations: 0.8148 MB / 0.5527 GB, free: 75.76 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002542/0.7629, allocations: 50.92 kB / 0.5527 GB, free: 75.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.7631, allocations: 111.4 kB / 0.5528 GB, free: 75.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.713e-06/0.7631, allocations: 0 / 0.5528 GB, free: 75.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02225/0.7854, allocations: 6.856 MB / 0.5595 GB, free: 68.75 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/0.7857, allocations: 155.5 kB / 0.5597 GB, free: 68.53 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.29/3.076, allocations: 0 / 0.5597 GB, free: 68.53 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)