Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",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.001009/0.001009, allocations: 180.3 kB / 16.38 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.233/1.233, 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.0008238/0.0008238, allocations: 93.22 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.1559/0.1559, allocations: 38.06 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002951/0.0002952, allocations: 8 kB / 424.1 MB, free: 37.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2339, allocations: 56.32 MB / 480.4 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1322/0.3661, allocations: 112.9 MB / 0.5794 GB, free: 5.504 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.3664, allocations: 99.94 kB / 0.5795 GB, free: 5.406 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07975/0.4462, allocations: 28.19 MB / 0.607 GB, free: 8.914 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4462, allocations: 0 / 0.607 GB, free: 8.914 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.819e-05/0.4463, allocations: 20 kB / 0.607 GB, free: 8.895 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005026/0.4513, allocations: 1.766 MB / 0.6088 GB, free: 7.047 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.4514, allocations: 19.97 kB / 0.6088 GB, free: 7.027 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005001/0.4519, allocations: 160.2 kB / 0.6089 GB, free: 6.863 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000803/0.4527, allocations: 162.6 kB / 0.6091 GB, free: 6.703 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004966/0.4577, allocations: 1.66 MB / 0.6107 GB, free: 5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000642/0.4583, allocations: 0.514 MB / 0.6112 GB, free: 4.414 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002942/0.4586, allocations: 99.97 kB / 0.6113 GB, free: 4.316 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00407/0.4627, allocations: 2.102 MB / 0.6133 GB, free: 2.164 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.677e-05/0.4628, allocations: 0 / 0.6133 GB, free: 2.164 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001323/0.4629, allocations: 39.98 kB / 0.6134 GB, free: 2.125 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001498/0.4631, allocations: 81.95 kB / 0.6135 GB, free: 2.047 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004808/0.4679, allocations: 2.381 MB / 0.6158 GB, free: 15.66 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009419/0.4773, allocations: 5.75 MB / 0.6214 GB, free: 9.805 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004216/0.4816, allocations: 1.812 MB / 0.6232 GB, free: 7.977 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.138e-05/0.4817, allocations: 9 kB / 0.6232 GB, free: 7.969 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002711/0.4844, allocations: 1.493 MB / 0.6246 GB, free: 6.453 MB / 458.7 MB Notification: Performance of pre-optimization done (n=125): time 4.338e-06/0.4844, allocations: 0 / 0.6246 GB, free: 6.453 MB / 458.7 MB Notification: Performance of matching and sorting (n=126): time 0.01311/0.4976, allocations: 6.646 MB / 0.6311 GB, free: 15.64 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.4976, allocations: 106.1 kB / 0.6312 GB, free: 15.52 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005192/0.4982, allocations: 441.1 kB / 0.6317 GB, free: 15.08 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.4983, allocations: 57.69 kB / 0.6317 GB, free: 15.02 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002736/0.4986, allocations: 360.8 kB / 0.6321 GB, free: 14.66 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003372/0.4989, allocations: 421.9 kB / 0.6325 GB, free: 14.24 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.154e-05/0.499, allocations: 20 kB / 0.6325 GB, free: 14.22 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.4992, allocations: 398.7 kB / 0.6329 GB, free: 13.82 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00196/0.5012, allocations: 1.139 MB / 0.634 GB, free: 12.69 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002065/0.5032, allocations: 1.286 MB / 0.6352 GB, free: 11.36 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002025/0.5053, allocations: 1.171 MB / 0.6364 GB, free: 10.19 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.5053, allocations: 0 / 0.6364 GB, free: 10.19 MB / 474.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.01126/0.5165, allocations: 4.483 MB / 0.6407 GB, free: 5.664 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.5167, allocations: 61.92 kB / 0.6408 GB, free: 5.598 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.5168, allocations: 8 kB / 0.6408 GB, free: 5.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006498/0.5233, allocations: 2.121 MB / 0.6429 GB, free: 3.461 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008992/0.5242, allocations: 179.6 kB / 0.6431 GB, free: 3.285 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2077/0.7319, allocations: 14.12 MB / 0.6568 GB, free: 132.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.7336, allocations: 198.7 kB / 0.657 GB, free: 132.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002119/0.7339, allocations: 65.67 kB / 0.6571 GB, free: 132.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 98 * Array equations: 4 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0008873/0.7347, allocations: 374 kB / 0.6574 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.735, allocations: 87.31 kB / 0.6575 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005789/0.7408, allocations: 2.659 MB / 0.6601 GB, free: 132.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.327e-05/0.7408, allocations: 33.23 kB / 0.6602 GB, free: 132.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.7409, allocations: 4.391 kB / 0.6602 GB, free: 132.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.7409, allocations: 3.891 kB / 0.6602 GB, free: 132.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00817/0.7491, allocations: 4.398 MB / 0.6645 GB, free: 131.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.7491, allocations: 2.844 kB / 0.6645 GB, free: 131.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01069/0.7598, allocations: 2.827 MB / 0.6672 GB, free: 131.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001167/0.76, allocations: 30.61 kB / 0.6673 GB, free: 131.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002703/0.7602, allocations: 39.72 kB / 0.6673 GB, free: 131.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000674/0.7609, allocations: 1.378 MB / 0.6686 GB, free: 129.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.7609, allocations: 6.5 kB / 0.6686 GB, free: 129.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007087/0.768, allocations: 4.397 MB / 0.6729 GB, free: 128.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007409/0.7688, allocations: 342.4 kB / 0.6733 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002233/0.769, allocations: 90.5 kB / 0.6733 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001271/0.7703, allocations: 239.9 kB / 0.6736 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003402/0.7707, allocations: 195.4 kB / 0.6738 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.7708, allocations: 46.22 kB / 0.6738 GB, free: 127.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003609/0.7712, allocations: 345.4 kB / 0.6741 GB, free: 127.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7712, allocations: 0 / 0.6741 GB, free: 127.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00124/0.7724, allocations: 381.2 kB / 0.6745 GB, free: 127.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 92 * Array equations: 4 * 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.007416/0.7798, allocations: 5.692 MB / 0.6801 GB, free: 124.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005931/0.7858, allocations: 3.292 MB / 0.6833 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.7858, allocations: 6.141 kB / 0.6833 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005532/0.7914, allocations: 2.419 MB / 0.6856 GB, free: 123.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009035/0.7923, allocations: 161.1 kB / 0.6858 GB, free: 123 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02013/0.8124, allocations: 13.49 MB / 0.699 GB, free: 115.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005253/0.813, allocations: 1.161 MB / 0.7001 GB, free: 114.6 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0009781/0.814, allocations: 320.4 kB / 0.7004 GB, free: 114.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000527/0.8145, allocations: 324.2 kB / 0.7007 GB, free: 114.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/0.8145, allocations: 0 / 0.7007 GB, free: 114.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0396/0.8541, allocations: 30.51 MB / 0.7305 GB, free: 86.98 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001407/0.8543, allocations: 216.9 kB / 0.7307 GB, free: 86.74 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.406/3.26, allocations: 0 / 0.7307 GB, free: 86.74 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.mat does not exist to compare? outputFormat=mat