Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001041/0.001041, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008796/0.0008794, allocations: 96.14 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1582/0.1582, allocations: 38.06 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002795, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2504, allocations: 56.33 MB / 480.4 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.3791, allocations: 112.4 MB / 0.579 GB, free: 5.934 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.3794, allocations: 91.95 kB / 0.579 GB, free: 5.844 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0627/0.4421, allocations: 24.05 MB / 0.6025 GB, free: 13.56 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4421, allocations: 4 kB / 0.6025 GB, free: 13.55 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.115e-05/0.4422, allocations: 19.94 kB / 0.6026 GB, free: 13.54 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002919/0.4451, allocations: 1.417 MB / 0.6039 GB, free: 12.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.4452, allocations: 8.031 kB / 0.604 GB, free: 12.03 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001985/0.4454, allocations: 156.2 kB / 0.6041 GB, free: 11.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006956/0.4461, allocations: 171.2 kB / 0.6043 GB, free: 11.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003563/0.4497, allocations: 1.41 MB / 0.6056 GB, free: 10.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.4498, allocations: 175.1 kB / 0.6058 GB, free: 10.06 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.45, allocations: 92 kB / 0.6059 GB, free: 9.973 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002584/0.4526, allocations: 1.533 MB / 0.6074 GB, free: 8.359 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.309e-05/0.4526, allocations: 3.938 kB / 0.6074 GB, free: 8.355 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/0.4527, allocations: 39.94 kB / 0.6074 GB, free: 8.316 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.4529, allocations: 57.97 kB / 0.6075 GB, free: 8.262 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002315/0.4552, allocations: 1.147 MB / 0.6086 GB, free: 7.109 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006253/0.4615, allocations: 4.789 MB / 0.6133 GB, free: 2.168 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00262/0.4641, allocations: 1.192 MB / 0.6145 GB, free: 0.9336 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.058e-05/0.4642, allocations: 8.625 kB / 0.6145 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001331/0.4655, allocations: 0.7377 MB / 0.6152 GB, free: 168 kB / 442.7 MB Notification: Performance of pre-optimization done (n=82): time 2.765e-06/0.4655, allocations: 0 / 0.6152 GB, free: 168 kB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.006466/0.472, allocations: 3.463 MB / 0.6186 GB, free: 12.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.036e-05/0.4721, allocations: 131.3 kB / 0.6187 GB, free: 12.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000552/0.4726, allocations: 0.5137 MB / 0.6192 GB, free: 11.89 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.078e-05/0.4727, allocations: 57.67 kB / 0.6192 GB, free: 11.83 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002887/0.473, allocations: 451.1 kB / 0.6197 GB, free: 11.38 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000225/0.4733, allocations: 280.2 kB / 0.6199 GB, free: 11.11 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.674e-05/0.4733, allocations: 20 kB / 0.62 GB, free: 11.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.4735, allocations: 394.7 kB / 0.6203 GB, free: 10.69 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006564/0.4741, allocations: 0.4981 MB / 0.6208 GB, free: 10.19 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008057/0.4749, allocations: 0.7702 MB / 0.6216 GB, free: 9.312 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007944/0.4757, allocations: 0.6406 MB / 0.6222 GB, free: 8.668 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4758, allocations: 4 kB / 0.6222 GB, free: 8.664 MB / 458.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002172/0.4779, allocations: 1.615 MB / 0.6238 GB, free: 7.012 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.564e-05/0.478, allocations: 68.58 kB / 0.6238 GB, free: 6.941 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001766/0.4798, allocations: 1.375 MB / 0.6252 GB, free: 5.531 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003463/0.4802, allocations: 106.1 kB / 0.6253 GB, free: 5.422 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006976/0.4809, allocations: 195.7 kB / 0.6255 GB, free: 5.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002378/0.4832, allocations: 3.013 MB / 0.6284 GB, free: 1.945 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005731/0.4838, allocations: 75.8 kB / 0.6285 GB, free: 1.871 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.4839, allocations: 67.95 kB / 0.6286 GB, free: 1.805 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 108 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004727/0.4844, allocations: 377.5 kB / 0.6289 GB, free: 1.426 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.4846, allocations: 75.06 kB / 0.629 GB, free: 1.352 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002516/0.4871, allocations: 1.29 MB / 0.6303 GB, free: 28 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.449e-05/0.4871, allocations: 23.98 kB / 0.6303 GB, free: 4 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.4871, allocations: 4.188 kB / 0.6303 GB, free: 0 / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.31e-05/0.4872, allocations: 8 kB / 0.6303 GB, free: 15.99 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004056/0.4912, allocations: 2.482 MB / 0.6327 GB, free: 13.43 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4912, allocations: 0 / 0.6327 GB, free: 13.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006844/0.4919, allocations: 143.8 kB / 0.6328 GB, free: 13.29 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.652e-05/0.492, allocations: 32.88 kB / 0.6329 GB, free: 13.25 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.655e-05/0.4921, allocations: 23.98 kB / 0.6329 GB, free: 13.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000872/0.4929, allocations: 1.385 MB / 0.6343 GB, free: 11.71 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/0.493, allocations: 7.922 kB / 0.6343 GB, free: 11.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003602/0.4966, allocations: 2.039 MB / 0.6363 GB, free: 9.586 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003856/0.497, allocations: 244 kB / 0.6365 GB, free: 9.328 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.4971, allocations: 75.95 kB / 0.6366 GB, free: 9.254 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007139/0.4979, allocations: 111.9 kB / 0.6367 GB, free: 9.145 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.498, allocations: 48.58 kB / 0.6367 GB, free: 9.094 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.245e-05/0.4981, allocations: 31.97 kB / 0.6367 GB, free: 9.062 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004182/0.4985, allocations: 406.8 kB / 0.6371 GB, free: 8.664 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4985, allocations: 0 / 0.6371 GB, free: 8.664 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008197/0.4993, allocations: 247.9 kB / 0.6374 GB, free: 8.422 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 61 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004047/0.5034, allocations: 2.956 MB / 0.6403 GB, free: 5.391 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002465/0.5059, allocations: 1.685 MB / 0.6419 GB, free: 3.668 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.5059, allocations: 0 / 0.6419 GB, free: 3.668 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.5071, allocations: 0.6833 MB / 0.6426 GB, free: 2.973 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006615/0.5077, allocations: 150.8 kB / 0.6427 GB, free: 2.824 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1714/0.6791, allocations: 12.29 MB / 0.6547 GB, free: 131.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006079/0.6798, allocations: 1.133 MB / 0.6558 GB, free: 130.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006768/0.6805, allocations: 231.6 kB / 0.656 GB, free: 130.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003976/0.6809, allocations: 332.9 kB / 0.6564 GB, free: 130.9 MB / 474.7 MB Notification: Performance of SimCode: time 6.82e-07/0.6809, allocations: 0 / 0.6564 GB, free: 130.9 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03079/0.7117, allocations: 17.72 MB / 0.6737 GB, free: 130.1 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001388/0.7118, allocations: 214.7 kB / 0.6739 GB, free: 129.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/2.876, allocations: 0 / 0.6739 GB, free: 129.8 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Inverter_res.mat does not exist to compare? outputFormat=mat