Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.001002/0.001003, allocations: 180.5 kB / 16.38 MB, free: 5.766 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.214/1.214, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.0008714/0.0008714, allocations: 91.27 kB / 270.9 MB, free: 8.383 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.07 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002913/0.0002913, allocations: 8 kB / 424.1 MB, free: 37.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2508, allocations: 56.33 MB / 480.4 MB, free: 9.434 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1263/0.3772, allocations: 102.2 MB / 0.569 GB, free: 84 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/0.3775, allocations: 88 kB / 0.5691 GB, free: 15.99 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03818/0.4157, allocations: 14.38 MB / 0.5831 GB, free: 1.469 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4157, allocations: 0 / 0.5831 GB, free: 1.469 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.286e-05/0.4158, allocations: 20 kB / 0.5831 GB, free: 1.449 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002102/0.4179, allocations: 1.05 MB / 0.5841 GB, free: 340 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.418, allocations: 12.03 kB / 0.5842 GB, free: 328 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002044/0.4182, allocations: 110.5 kB / 0.5843 GB, free: 208 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002024/0.4184, allocations: 90.92 kB / 0.5844 GB, free: 116 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003032/0.4214, allocations: 1.192 MB / 0.5855 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.4216, allocations: 108.7 kB / 0.5856 GB, free: 14.76 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.4217, allocations: 64 kB / 0.5857 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001541/0.4232, allocations: 0.871 MB / 0.5865 GB, free: 13.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.4233, allocations: 4 kB / 0.5865 GB, free: 13.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.824e-05/0.4233, allocations: 27.95 kB / 0.5866 GB, free: 13.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.4234, allocations: 16 kB / 0.5866 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.4245, allocations: 0.6139 MB / 0.5872 GB, free: 13.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.4283, allocations: 2.754 MB / 0.5899 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.4299, allocations: 0.9165 MB / 0.5908 GB, free: 9.254 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.4299, allocations: 4.391 kB / 0.5908 GB, free: 9.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006756/0.4306, allocations: 354.6 kB / 0.5911 GB, free: 8.883 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.315e-06/0.4306, allocations: 0 / 0.5911 GB, free: 8.883 MB / 426.7 MB Notification: Performance of matching and sorting (n=42): time 0.003899/0.4345, allocations: 1.969 MB / 0.593 GB, free: 6.797 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.585e-05/0.4346, allocations: 118.8 kB / 0.5931 GB, free: 6.656 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005193/0.4351, allocations: 453.9 kB / 0.5936 GB, free: 6.203 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.838e-05/0.4352, allocations: 41.69 kB / 0.5936 GB, free: 6.156 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002358/0.4354, allocations: 363.7 kB / 0.594 GB, free: 5.797 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.4355, allocations: 146 kB / 0.5941 GB, free: 5.652 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.626e-05/0.4356, allocations: 12 kB / 0.5941 GB, free: 5.641 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.4357, allocations: 370.7 kB / 0.5945 GB, free: 5.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003125/0.4361, allocations: 201.1 kB / 0.5947 GB, free: 5.074 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003864/0.4364, allocations: 370.2 kB / 0.595 GB, free: 4.637 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003874/0.4368, allocations: 290.4 kB / 0.5953 GB, free: 4.348 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.4369, allocations: 4 kB / 0.5953 GB, free: 4.344 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001095/0.438, allocations: 0.824 MB / 0.5961 GB, free: 3.48 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.316e-05/0.438, allocations: 56.34 kB / 0.5961 GB, free: 3.422 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.438, allocations: 8 kB / 0.5962 GB, free: 3.414 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002155/0.4383, allocations: 65.67 kB / 0.5962 GB, free: 3.344 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003923/0.4387, allocations: 107.8 kB / 0.5963 GB, free: 3.238 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.4409, allocations: 2.868 MB / 0.5991 GB, free: 104 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003555/0.4412, allocations: 31.89 kB / 0.5992 GB, free: 72 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.114e-05/0.4413, allocations: 52.12 kB / 0.5992 GB, free: 20 kB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003409/0.4417, allocations: 269.3 kB / 0.5995 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.966e-05/0.4418, allocations: 63.28 kB / 0.5995 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001383/0.4432, allocations: 0.6926 MB / 0.6002 GB, free: 14.96 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.4432, allocations: 4 kB / 0.6002 GB, free: 14.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4432, allocations: 4 kB / 0.6002 GB, free: 14.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.4432, allocations: 0 / 0.6002 GB, free: 14.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002348/0.4456, allocations: 1.546 MB / 0.6017 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.4456, allocations: 0 / 0.6017 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002926/0.4459, allocations: 67.97 kB / 0.6018 GB, free: 13.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001794/0.4461, allocations: 69.66 kB / 0.6018 GB, free: 13.17 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.144e-05/0.4461, allocations: 11.98 kB / 0.6019 GB, free: 13.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/0.4482, allocations: 2.85 MB / 0.6046 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.4483, allocations: 3.984 kB / 0.6046 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.4502, allocations: 1.095 MB / 0.6057 GB, free: 8.875 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000241/0.4504, allocations: 172.5 kB / 0.6059 GB, free: 8.688 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.358e-05/0.4505, allocations: 23.98 kB / 0.6059 GB, free: 8.664 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000389/0.4509, allocations: 51.94 kB / 0.6059 GB, free: 8.613 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.869e-05/0.451, allocations: 27.95 kB / 0.606 GB, free: 8.586 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.166e-05/0.4511, allocations: 19.98 kB / 0.606 GB, free: 8.566 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004057/0.4515, allocations: 346.8 kB / 0.6063 GB, free: 8.23 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4515, allocations: 0 / 0.6063 GB, free: 8.23 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006705/0.4522, allocations: 163.9 kB / 0.6065 GB, free: 8.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002253/0.4544, allocations: 1.871 MB / 0.6083 GB, free: 6.125 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.4559, allocations: 0.8831 MB / 0.6092 GB, free: 5.199 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4559, allocations: 4.188 kB / 0.6092 GB, free: 5.195 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000823/0.4567, allocations: 0.5009 MB / 0.6097 GB, free: 4.668 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006319/0.4574, allocations: 146 kB / 0.6098 GB, free: 4.527 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006893/0.4643, allocations: 7.549 MB / 0.6172 GB, free: 12.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005579/0.4648, allocations: 0.9838 MB / 0.6181 GB, free: 11.78 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003483/0.4652, allocations: 108.9 kB / 0.6182 GB, free: 11.67 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002723/0.4655, allocations: 227.4 kB / 0.6185 GB, free: 11.45 MB / 458.7 MB Notification: Performance of SimCode: time 6.51e-07/0.4655, allocations: 0 / 0.6185 GB, free: 11.45 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.4928, allocations: 12.41 MB / 0.6306 GB, free: 15.09 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001716/0.493, allocations: 207.1 kB / 0.6308 GB, free: 14.85 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.026/2.519, allocations: 0 / 0.6308 GB, free: 14.85 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat does not exist to compare? outputFormat=mat