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.0009907/0.0009909, allocations: 88.16 kB / 16.31 MB, free: 5.539 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.001223/0.001223, allocations: 183.6 kB / 17.21 MB, free: 5.457 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.426/1.426, allocations: 223.3 MB / 241.2 MB, free: 14.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.178/0.178, allocations: 38.08 MB / 330.4 MB, free: 8.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003185/0.0003186, allocations: 11.98 kB / 400.2 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1053, allocations: 59.16 MB / 459.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.00796/0.1133, allocations: 6.707 MB / 466 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004927/0.1183, allocations: 2.607 MB / 468.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001185/0.1196, allocations: 43.69 kB / 468.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006966/0.1203, allocations: 170.7 kB / 468.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002084/0.1224, allocations: 0.6068 MB / 469.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.1236, allocations: 431.3 kB / 469.9 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002281/0.1259, allocations: 2.015 MB / 471.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.1275, allocations: 0.8319 MB / 472.7 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001117/0.1286, allocations: 0.6307 MB / 473.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/0.1301, allocations: 0.9157 MB / 474.3 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.1302, allocations: 68 kB / 474.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.1313, allocations: 0.5577 MB / 474.9 MB, free: 7.637 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006103/0.1319, allocations: 0.5573 MB / 475.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003336/0.1322, allocations: 221.2 kB / 475.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001452/0.1337, allocations: 1.547 MB / 477.2 MB, free: 5.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1337, allocations: 0 / 477.2 MB, free: 5.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1337, allocations: 0 / 477.2 MB, free: 5.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.1337, allocations: 4 kB / 477.2 MB, free: 5.301 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.003877/0.1376, allocations: 1.721 MB / 479 MB, free: 3.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1377, allocations: 8.031 kB / 479 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002368/0.1379, allocations: 164.2 kB / 479.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006247/0.1385, allocations: 166.6 kB / 479.3 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001871/0.1404, allocations: 0.9196 MB / 480.2 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006156/0.141, allocations: 0.5179 MB / 480.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002563/0.1413, allocations: 95.89 kB / 480.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003997/0.1453, allocations: 2.109 MB / 482.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.155e-05/0.1454, allocations: 11.92 kB / 482.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001301/0.1455, allocations: 39.98 kB / 483 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002062/0.1457, allocations: 89.94 kB / 483.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00483/0.1506, allocations: 2.404 MB / 485.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009469/0.16, allocations: 5.765 MB / 491.2 MB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004433/0.1645, allocations: 1.941 MB / 493.2 MB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00255/0.1671, allocations: 1.249 MB / 494.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.1673, allocations: 20.97 kB / 494.4 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002952/0.1702, allocations: 1.473 MB / 495.9 MB, free: 2.195 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 3.527e-06/0.1702, allocations: 0 / 495.9 MB, free: 2.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.01331/0.1836, allocations: 6.102 MB / 0.4902 GB, free: 12.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.09e-05/0.1837, allocations: 102.1 kB / 0.4903 GB, free: 11.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007051/0.1844, allocations: 497.9 kB / 0.4908 GB, free: 11.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001411/0.1846, allocations: 61.69 kB / 0.4909 GB, free: 11.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/0.1849, allocations: 360.6 kB / 0.4912 GB, free: 11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004126/0.1853, allocations: 418.2 kB / 0.4916 GB, free: 10.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.425e-05/0.1854, allocations: 20 kB / 0.4916 GB, free: 10.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.1856, allocations: 398.7 kB / 0.492 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/0.1876, allocations: 1.08 MB / 0.4931 GB, free: 9.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002121/0.1897, allocations: 1.231 MB / 0.4943 GB, free: 7.816 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002084/0.1918, allocations: 1.12 MB / 0.4954 GB, free: 6.688 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.1919, allocations: 4 kB / 0.4954 GB, free: 6.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01053/0.2024, allocations: 4.376 MB / 0.4997 GB, free: 2.289 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.2025, allocations: 53.69 kB / 0.4997 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.2026, allocations: 7.938 kB / 0.4997 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005504/0.2081, allocations: 2.219 MB / 0.5019 GB, free: 0 / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.226/0.4341, allocations: 189.6 kB / 0.5021 GB, free: 56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03488/0.469, allocations: 11.63 MB / 0.5134 GB, free: 53.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.4711, allocations: 204.2 kB / 0.5136 GB, free: 53.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003064/0.4714, allocations: 73.31 kB / 0.5137 GB, free: 53.18 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 (112): * Single equations (assignments): 101 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 21} Notification: Performance of prepare postOptimizeDAE: time 0.0009919/0.4724, allocations: 388.3 kB / 0.5141 GB, free: 52.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003214/0.4727, allocations: 81.31 kB / 0.5141 GB, free: 52.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007829/0.4806, allocations: 2.551 MB / 0.5166 GB, free: 52.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.2e-05/0.4807, allocations: 26.94 kB / 0.5166 GB, free: 52.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.4807, allocations: 4 kB / 0.5166 GB, free: 52.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.372e-05/0.4808, allocations: 8.422 kB / 0.5167 GB, free: 52.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/0.4929, allocations: 4.299 MB / 0.5209 GB, free: 50.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.4929, allocations: 3.938 kB / 0.5209 GB, free: 50.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01076/0.5037, allocations: 2.861 MB / 0.5237 GB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-05/0.5038, allocations: 4 kB / 0.5237 GB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002644/0.504, allocations: 37.45 kB / 0.5237 GB, free: 49.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.157e-06/0.5041, allocations: 8 kB / 0.5237 GB, free: 49.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5041, allocations: 7.938 kB / 0.5237 GB, free: 49.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007118/0.5112, allocations: 4.144 MB / 0.5278 GB, free: 44.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006006/0.5118, allocations: 347.3 kB / 0.5281 GB, free: 44.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002288/0.5121, allocations: 81.08 kB / 0.5282 GB, free: 44.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.5133, allocations: 244.7 kB / 0.5284 GB, free: 44.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003707/0.5137, allocations: 184.7 kB / 0.5286 GB, free: 44.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.5138, allocations: 45.09 kB / 0.5286 GB, free: 43.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003959/0.5142, allocations: 346.8 kB / 0.5289 GB, free: 43.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5142, allocations: 0 / 0.5289 GB, free: 43.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001274/0.5155, allocations: 354.7 kB / 0.5293 GB, free: 43.3 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): 96 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007333/0.5229, allocations: 4.8 MB / 0.534 GB, free: 38.47 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006051/0.5289, allocations: 3.832 MB / 0.5377 GB, free: 34.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.529, allocations: 0 / 0.5377 GB, free: 34.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00531/0.5343, allocations: 2.298 MB / 0.54 GB, free: 32.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.5355, allocations: 170.6 kB / 0.5401 GB, free: 32.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02054/0.556, allocations: 11.49 MB / 0.5513 GB, free: 20.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000615/0.5567, allocations: 1.149 MB / 0.5525 GB, free: 19.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001173/0.5579, allocations: 318.7 kB / 0.5528 GB, free: 18.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005824/0.5585, allocations: 339.3 kB / 0.5531 GB, free: 18.64 MB / 382.1 MB Notification: Performance of SimCode: time 2.234e-06/0.5585, allocations: 0 / 0.5531 GB, free: 18.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05512/0.6136, allocations: 33.09 MB / 0.5854 GB, free: 1.859 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002122/0.6139, allocations: 232.6 kB / 0.5856 GB, free: 1.613 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.681/3.295, allocations: 0 / 0.5856 GB, free: 1.613 MB / 398.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