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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007727/0.0007728, allocations: 96.52 kB / 16.3 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007941/0.000794, allocations: 183.2 kB / 17.2 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 223.2 MB / 241.1 MB, free: 396 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1648/0.1648, allocations: 38.08 MB / 330.3 MB, free: 8.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003726, allocations: 8.969 kB / 400.1 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09844/0.09884, allocations: 59.18 MB / 459.2 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.006357/0.1052, allocations: 6.423 MB / 465.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004371/0.1097, allocations: 2.635 MB / 468.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000589/0.1103, allocations: 47.69 kB / 468.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004944/0.1108, allocations: 151 kB / 468.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001212/0.112, allocations: 494.5 kB / 469 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.1131, allocations: 427.2 kB / 469.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001244/0.1143, allocations: 1.034 MB / 470.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.1156, allocations: 0.8319 MB / 471.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007689/0.1164, allocations: 0.5648 MB / 471.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009783/0.1174, allocations: 0.7326 MB / 472.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000153/0.1175, allocations: 68 kB / 472.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008293/0.1184, allocations: 0.5071 MB / 473.1 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005053/0.1189, allocations: 0.5145 MB / 473.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002389/0.1191, allocations: 233.1 kB / 473.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.1204, allocations: 1.543 MB / 475.4 MB, free: 7.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.1204, allocations: 0 / 475.4 MB, free: 7.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1204, allocations: 0 / 475.4 MB, free: 7.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.768e-05/0.1204, allocations: 4 kB / 475.4 MB, free: 7.09 MB / 350.1 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.004027/0.1245, allocations: 1.717 MB / 477.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1245, allocations: 12.03 kB / 477.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000233/0.1248, allocations: 172.2 kB / 477.3 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006714/0.1254, allocations: 166.6 kB / 477.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002244/0.1277, allocations: 0.9312 MB / 478.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006038/0.1283, allocations: 0.5179 MB / 478.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002385/0.1286, allocations: 99.89 kB / 479 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003818/0.1324, allocations: 2.101 MB / 481.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.431e-05/0.1324, allocations: 4 kB / 481.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/0.1326, allocations: 35.98 kB / 481.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002061/0.1328, allocations: 89.89 kB / 481.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004727/0.1375, allocations: 2.408 MB / 483.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009561/0.1471, allocations: 5.761 MB / 489.4 MB, free: 8.723 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004609/0.1518, allocations: 1.945 MB / 491.4 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.365e-05/0.1519, allocations: 20.98 kB / 491.4 MB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002882/0.1548, allocations: 1.48 MB / 492.9 MB, free: 5.223 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 2.866e-06/0.1548, allocations: 0 / 492.9 MB, free: 5.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.01405/0.1688, allocations: 6.55 MB / 499.4 MB, free: 14.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.1689, allocations: 102 kB / 499.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005582/0.1695, allocations: 0.494 MB / 0.4883 GB, free: 13.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001186/0.1696, allocations: 57.69 kB / 0.4883 GB, free: 13.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/0.1699, allocations: 364.6 kB / 0.4887 GB, free: 13.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003183/0.1702, allocations: 414.1 kB / 0.4891 GB, free: 13.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.96e-05/0.1703, allocations: 20 kB / 0.4891 GB, free: 13.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1705, allocations: 394.7 kB / 0.4895 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001952/0.1724, allocations: 1.084 MB / 0.4905 GB, free: 11.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00206/0.1745, allocations: 1.231 MB / 0.4917 GB, free: 10.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.1765, allocations: 1.112 MB / 0.4928 GB, free: 9.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1765, allocations: 0 / 0.4928 GB, free: 9.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01132/0.1878, allocations: 4.479 MB / 0.4972 GB, free: 4.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.475e-05/0.1879, allocations: 61.67 kB / 0.4973 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.188, allocations: 0 / 0.4973 GB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006502/0.1945, allocations: 2.247 MB / 0.4995 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008954/0.1954, allocations: 191.7 kB / 0.4996 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2493/0.4447, allocations: 13.7 MB / 0.513 GB, free: 52.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/0.4463, allocations: 210.9 kB / 0.5132 GB, free: 52.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001825/0.4465, allocations: 70.09 kB / 0.5133 GB, free: 52.23 MB / 382.1 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 (111): * Single equations (assignments): 99 * Array equations: 3 * Algorithm blocks: 7 * 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 21} Notification: Performance of prepare postOptimizeDAE: time 0.000757/0.4473, allocations: 382.1 kB / 0.5136 GB, free: 52.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002618/0.4476, allocations: 88.05 kB / 0.5137 GB, free: 52.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006132/0.4537, allocations: 2.653 MB / 0.5163 GB, free: 51.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-05/0.4538, allocations: 23.81 kB / 0.5163 GB, free: 51.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.4538, allocations: 0.9688 kB / 0.5163 GB, free: 51.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.4538, allocations: 8.781 kB / 0.5164 GB, free: 51.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008416/0.4622, allocations: 4.406 MB / 0.5207 GB, free: 49.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.4623, allocations: 2.75 kB / 0.5207 GB, free: 49.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01087/0.4732, allocations: 2.856 MB / 0.5234 GB, free: 48.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001277/0.4733, allocations: 26.3 kB / 0.5235 GB, free: 48.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002299/0.4736, allocations: 38.86 kB / 0.5235 GB, free: 48.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007763/0.4744, allocations: 1.396 MB / 0.5249 GB, free: 46.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4744, allocations: 3.312 kB / 0.5249 GB, free: 46.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007253/0.4816, allocations: 4.358 MB / 0.5291 GB, free: 42.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007455/0.4824, allocations: 338.7 kB / 0.5295 GB, free: 42.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002202/0.4826, allocations: 87.94 kB / 0.5295 GB, free: 42.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001312/0.484, allocations: 248.3 kB / 0.5298 GB, free: 41.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000369/0.4843, allocations: 188.6 kB / 0.53 GB, free: 41.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.4845, allocations: 40.52 kB / 0.53 GB, free: 41.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004136/0.4849, allocations: 346.8 kB / 0.5303 GB, free: 41.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4849, allocations: 0 / 0.5303 GB, free: 41.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00133/0.4862, allocations: 357.7 kB / 0.5307 GB, free: 40.9 MB / 382.1 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 (112): * Single equations (assignments): 95 * Array equations: 3 * 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.007637/0.4939, allocations: 5.637 MB / 0.5362 GB, free: 35.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006393/0.5003, allocations: 3.955 MB / 0.54 GB, free: 31.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/0.5003, allocations: 4.25 kB / 0.54 GB, free: 31.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005865/0.5062, allocations: 2.41 MB / 0.5424 GB, free: 28.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009381/0.5072, allocations: 158.1 kB / 0.5425 GB, free: 28.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02105/0.5282, allocations: 13.3 MB / 0.5555 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005385/0.5288, allocations: 1.167 MB / 0.5567 GB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009503/0.5298, allocations: 318.8 kB / 0.557 GB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000525/0.5303, allocations: 343.3 kB / 0.5573 GB, free: 13.21 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5303, allocations: 0 / 0.5573 GB, free: 13.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04791/0.5782, allocations: 33.47 MB / 0.59 GB, free: 12.03 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002199/0.5785, allocations: 230.8 kB / 0.5902 GB, free: 11.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.227/2.805, allocations: 0 / 0.5902 GB, free: 11.79 MB / 414.1 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) Environment - environmentSimulation: 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