Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.001055/0.001055, 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.688/1.688, 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.0008064/0.0008064, allocations: 78.67 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.17/0.17, allocations: 37.99 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.955e-05/3.97e-05, allocations: 0 / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1192, allocations: 56.32 MB / 474.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4347/0.554, allocations: 102 MB / 0.5627 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003416/0.5545, allocations: 95.8 kB / 0.5628 GB, free: 0.543 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04584/0.6003, allocations: 15.69 MB / 0.5781 GB, free: 2.898 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.6004, allocations: 4 kB / 0.5781 GB, free: 2.895 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.746e-05/0.6004, allocations: 20.12 kB / 0.5781 GB, free: 2.875 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002821/0.6033, allocations: 1.041 MB / 0.5791 GB, free: 1.824 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.6033, allocations: 12.03 kB / 0.5791 GB, free: 1.812 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003576/0.6037, allocations: 109.9 kB / 0.5792 GB, free: 1.734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003325/0.604, allocations: 83.11 kB / 0.5793 GB, free: 1.652 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003746/0.6078, allocations: 1.22 MB / 0.5805 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005325/0.6083, allocations: 351 kB / 0.5808 GB, free: 244 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002003/0.6086, allocations: 57.72 kB / 0.5809 GB, free: 204 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.6103, allocations: 0.9036 MB / 0.5818 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.6103, allocations: 0 / 0.5818 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.555e-05/0.6104, allocations: 28.44 kB / 0.5818 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.6104, allocations: 16 kB / 0.5818 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.6119, allocations: 0.8295 MB / 0.5826 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005214/0.6172, allocations: 3.272 MB / 0.5858 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009395/0.6181, allocations: 0.5463 MB / 0.5864 GB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005786/0.6187, allocations: 396.5 kB / 0.5867 GB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.196e-05/0.6188, allocations: 16.42 kB / 0.5868 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006787/0.6195, allocations: 485.7 kB / 0.5872 GB, free: 11.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 3.126e-06/0.6195, allocations: 0 / 0.5872 GB, free: 11.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.001158/0.6206, allocations: 0.6589 MB / 0.5879 GB, free: 10.78 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.915e-05/0.6207, allocations: 147.9 kB / 0.588 GB, free: 10.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000406/0.6212, allocations: 337.6 kB / 0.5883 GB, free: 10.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.161e-05/0.6212, allocations: 41.64 kB / 0.5884 GB, free: 10.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.6214, allocations: 291.7 kB / 0.5886 GB, free: 10.08 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.6216, allocations: 163.2 kB / 0.5888 GB, free: 9.941 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.861e-05/0.6217, allocations: 6 kB / 0.5888 GB, free: 9.941 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.6218, allocations: 366.2 kB / 0.5892 GB, free: 9.598 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004932/0.6223, allocations: 338.2 kB / 0.5895 GB, free: 9.391 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005283/0.6229, allocations: 439.8 kB / 0.5899 GB, free: 9.059 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004688/0.6233, allocations: 346.8 kB / 0.5902 GB, free: 8.816 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.6234, allocations: 4 kB / 0.5902 GB, free: 8.812 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001272/0.6246, allocations: 0.8477 MB / 0.5911 GB, free: 8.188 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.222e-05/0.6247, allocations: 48.88 kB / 0.5911 GB, free: 8.137 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.6247, allocations: 0 / 0.5911 GB, free: 8.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.6247, allocations: 8 kB / 0.5911 GB, free: 8.129 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006579/0.6313, allocations: 1.595 MB / 0.5927 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005642/0.637, allocations: 4.092 MB / 0.5967 GB, free: 2.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00095/0.638, allocations: 137.8 kB / 0.5968 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001978/0.6382, allocations: 46.84 kB / 0.5968 GB, free: 2.402 MB / 394.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: 14 ($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.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete 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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003167/0.6385, allocations: 135.4 kB / 0.597 GB, free: 2.277 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.6387, allocations: 59.36 kB / 0.597 GB, free: 2.219 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001323/0.64, allocations: 0.6987 MB / 0.5977 GB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.6401, allocations: 8 kB / 0.5977 GB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.6401, allocations: 0 / 0.5977 GB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.6401, allocations: 7.938 kB / 0.5977 GB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002848/0.6429, allocations: 1.856 MB / 0.5995 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.643, allocations: 0 / 0.5995 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007618/0.6506, allocations: 1.838 MB / 0.6013 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/0.6506, allocations: 4 kB / 0.6013 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/0.6508, allocations: 21.41 kB / 0.6014 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.134e-06/0.6508, allocations: 7.938 kB / 0.6014 GB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.6508, allocations: 4 kB / 0.6014 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.6528, allocations: 1.365 MB / 0.6027 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003799/0.6532, allocations: 202.5 kB / 0.6029 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.6534, allocations: 27.19 kB / 0.6029 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008015/0.6542, allocations: 122.2 kB / 0.603 GB, free: 13.01 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002293/0.6544, allocations: 94.8 kB / 0.6031 GB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.327e-05/0.6545, allocations: 19.05 kB / 0.6031 GB, free: 12.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003616/0.6548, allocations: 263.3 kB / 0.6034 GB, free: 12.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6548, allocations: 0 / 0.6034 GB, free: 12.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007989/0.6556, allocations: 182.3 kB / 0.6036 GB, free: 12.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002538/0.6582, allocations: 2.434 MB / 0.606 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006259/0.6645, allocations: 2.068 MB / 0.608 GB, free: 8.633 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.6645, allocations: 0 / 0.608 GB, free: 8.633 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003194/0.6677, allocations: 1.005 MB / 0.609 GB, free: 7.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007985/0.6685, allocations: 121.2 kB / 0.6091 GB, free: 7.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003877/0.6724, allocations: 1.449 MB / 0.6105 GB, free: 6.387 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006196/0.6731, allocations: 0.9458 MB / 0.6114 GB, free: 5.438 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006478/0.6737, allocations: 156.6 kB / 0.6116 GB, free: 5.285 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.6741, allocations: 197.2 kB / 0.6117 GB, free: 5.23 MB / 410.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6741, allocations: 4 kB / 0.6117 GB, free: 5.227 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06173/0.7358, allocations: 12.81 MB / 0.6243 GB, free: 8.457 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001836/0.7361, allocations: 194.2 kB / 0.6244 GB, free: 8.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.314/3.05, allocations: 4 kB / 0.6244 GB, free: 8.227 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad_res.mat does not exist to compare? outputFormat=mat