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.001072/0.001072, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.603/1.603, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0008084/0.0008086, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1574/0.1574, allocations: 37.98 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.858e-05/2.86e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1002, allocations: 56.32 MB / 474.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.362/0.4622, allocations: 112.3 MB / 0.5727 GB, free: 6.629 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001874/0.4625, allocations: 92.55 kB / 0.5728 GB, free: 6.582 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06126/0.5237, allocations: 24.02 MB / 0.5963 GB, free: 1.902 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.5238, allocations: 0 / 0.5963 GB, free: 1.902 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.201e-05/0.5238, allocations: 23.94 kB / 0.5963 GB, free: 1.879 MB / 394.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.002286/0.5261, allocations: 1.327 MB / 0.5976 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.5262, allocations: 8.031 kB / 0.5976 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001886/0.5264, allocations: 161.3 kB / 0.5978 GB, free: 444 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006716/0.527, allocations: 159.3 kB / 0.5979 GB, free: 284 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003369/0.5304, allocations: 1.393 MB / 0.5993 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.5306, allocations: 174 kB / 0.5995 GB, free: 14.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.5307, allocations: 90.31 kB / 0.5995 GB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00194/0.5327, allocations: 1.422 MB / 0.6009 GB, free: 13.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.605e-05/0.5327, allocations: 3.938 kB / 0.6009 GB, free: 13.76 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.774e-05/0.5328, allocations: 40.06 kB / 0.601 GB, free: 13.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.226e-05/0.5329, allocations: 61.34 kB / 0.601 GB, free: 13.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001471/0.5344, allocations: 1.036 MB / 0.602 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005608/0.54, allocations: 4.787 MB / 0.6067 GB, free: 8.863 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.5413, allocations: 0.9038 MB / 0.6076 GB, free: 8.184 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007055/0.542, allocations: 498.5 kB / 0.6081 GB, free: 7.855 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.468e-05/0.5421, allocations: 12.55 kB / 0.6081 GB, free: 7.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008207/0.5429, allocations: 0.6373 MB / 0.6087 GB, free: 7.355 MB / 410.7 MB Notification: Performance of pre-optimization done (n=82): time 2.965e-06/0.5429, allocations: 0 / 0.6087 GB, free: 7.355 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.003452/0.5464, allocations: 2.381 MB / 0.611 GB, free: 5.375 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.308e-05/0.5465, allocations: 134.3 kB / 0.6112 GB, free: 5.219 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005259/0.547, allocations: 0.504 MB / 0.6117 GB, free: 4.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.589e-05/0.5471, allocations: 56.56 kB / 0.6117 GB, free: 4.773 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002711/0.5474, allocations: 446 kB / 0.6121 GB, free: 4.434 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/0.5476, allocations: 283.9 kB / 0.6124 GB, free: 4.191 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.261e-05/0.5476, allocations: 22.75 kB / 0.6124 GB, free: 4.184 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.5478, allocations: 390.1 kB / 0.6128 GB, free: 3.824 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006472/0.5484, allocations: 0.4949 MB / 0.6133 GB, free: 3.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007979/0.5493, allocations: 0.7583 MB / 0.614 GB, free: 2.812 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007793/0.55, allocations: 0.6385 MB / 0.6146 GB, free: 2.352 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.5501, allocations: 4 kB / 0.6147 GB, free: 2.348 MB / 410.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002151/0.5522, allocations: 1.599 MB / 0.6162 GB, free: 1.094 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.858e-05/0.5523, allocations: 65.05 kB / 0.6163 GB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001824/0.5541, allocations: 1.356 MB / 0.6176 GB, free: 15.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003364/0.5545, allocations: 110 kB / 0.6177 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006826/0.5552, allocations: 199.6 kB / 0.6179 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002191/0.5574, allocations: 2.982 MB / 0.6208 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005597/0.558, allocations: 71.92 kB / 0.6209 GB, free: 12.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.5581, allocations: 67.95 kB / 0.6209 GB, free: 12.04 MB / 426.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 () * 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.0002091/0.5583, allocations: 191.9 kB / 0.6211 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.5584, allocations: 75.06 kB / 0.6212 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0016/0.56, allocations: 1.096 MB / 0.6223 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-05/0.5601, allocations: 23.94 kB / 0.6223 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.5601, allocations: 0 / 0.6223 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/0.5601, allocations: 7.984 kB / 0.6223 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/0.5632, allocations: 2.3 MB / 0.6245 GB, free: 8.219 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.5632, allocations: 0 / 0.6245 GB, free: 8.219 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006776/0.5639, allocations: 147.8 kB / 0.6247 GB, free: 8.074 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-05/0.564, allocations: 20.86 kB / 0.6247 GB, free: 8.051 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-05/0.564, allocations: 31.97 kB / 0.6247 GB, free: 8.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008457/0.5649, allocations: 1.385 MB / 0.6261 GB, free: 6.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5649, allocations: 4.031 kB / 0.6261 GB, free: 6.496 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.567, allocations: 1.739 MB / 0.6278 GB, free: 4.688 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003262/0.5674, allocations: 240 kB / 0.628 GB, free: 4.434 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.5676, allocations: 75.95 kB / 0.6281 GB, free: 4.359 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007022/0.5683, allocations: 111.9 kB / 0.6282 GB, free: 4.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.5684, allocations: 64.59 kB / 0.6283 GB, free: 4.184 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.968e-05/0.5685, allocations: 31.91 kB / 0.6283 GB, free: 4.152 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004107/0.5689, allocations: 389.5 kB / 0.6287 GB, free: 3.773 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5689, allocations: 0 / 0.6287 GB, free: 3.773 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007801/0.5697, allocations: 255.9 kB / 0.6289 GB, free: 3.523 MB / 426.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]) * 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.002659/0.5724, allocations: 2.662 MB / 0.6315 GB, free: 0.7891 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001983/0.5744, allocations: 1.573 MB / 0.633 GB, free: 15.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5744, allocations: 4.062 kB / 0.633 GB, free: 15.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007192/0.5751, allocations: 0.581 MB / 0.6336 GB, free: 14.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006551/0.5758, allocations: 145.2 kB / 0.6337 GB, free: 14.45 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003153/0.5789, allocations: 2.155 MB / 0.6359 GB, free: 12.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006475/0.5796, allocations: 1.13 MB / 0.637 GB, free: 11.07 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005861/0.5802, allocations: 242.5 kB / 0.6372 GB, free: 10.83 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004453/0.5806, allocations: 331.3 kB / 0.6375 GB, free: 10.5 MB / 442.7 MB Notification: Performance of SimCode: time 6.62e-07/0.5806, allocations: 0 / 0.6375 GB, free: 10.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.381/1.961, allocations: 17.73 MB / 0.6548 GB, free: 8.809 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.01176/1.973, allocations: 174.1 kB / 0.655 GB, free: 8.586 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.606/4.579, allocations: 4.062 kB / 0.655 GB, free: 8.582 MB / 458.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