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.001557/0.001557, allocations: 175.4 kB / 8.344 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.538/1.538, allocations: 205.3 MB / 214.1 MB, free: 14.12 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008496/0.0008498, allocations: 83.39 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1729/0.1729, allocations: 37.98 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.057e-05/2.034e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1118, allocations: 56.32 MB / 467 MB, free: 6.469 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4115/0.5233, allocations: 101.5 MB / 0.5551 GB, free: 9.301 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003569/0.5238, allocations: 87.95 kB / 0.5552 GB, free: 9.215 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0411/0.5649, allocations: 14.23 MB / 0.5691 GB, free: 10.86 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.565, allocations: 0 / 0.5691 GB, free: 10.86 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.729e-05/0.565, allocations: 28.09 kB / 0.5691 GB, free: 10.83 MB / 411.1 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.001692/0.5667, allocations: 0.9563 MB / 0.5701 GB, free: 9.812 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.5668, allocations: 12.02 kB / 0.5701 GB, free: 9.801 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001882/0.567, allocations: 94.92 kB / 0.5702 GB, free: 9.707 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002997/0.57, allocations: 1.175 MB / 0.5713 GB, free: 8.492 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.5701, allocations: 88.7 kB / 0.5714 GB, free: 8.395 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.891e-05/0.5702, allocations: 47.94 kB / 0.5714 GB, free: 8.348 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008578/0.5711, allocations: 0.4992 MB / 0.5719 GB, free: 7.848 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.5722, allocations: 0.7322 MB / 0.5727 GB, free: 7.066 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.5723, allocations: 0 / 0.5727 GB, free: 7.066 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.937e-05/0.5723, allocations: 7.953 kB / 0.5727 GB, free: 7.059 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.5724, allocations: 20 kB / 0.5727 GB, free: 7.039 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003535/0.5759, allocations: 2.608 MB / 0.5752 GB, free: 4.336 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.577, allocations: 0.8037 MB / 0.576 GB, free: 3.441 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003997/0.5774, allocations: 246.3 kB / 0.5762 GB, free: 3.195 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.5775, allocations: 12.2 kB / 0.5763 GB, free: 3.184 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004286/0.5779, allocations: 286.7 kB / 0.5765 GB, free: 2.883 MB / 411.1 MB Notification: Performance of pre-optimization done (n=41): time 2.565e-06/0.5779, allocations: 7.938 kB / 0.5765 GB, free: 2.875 MB / 411.1 MB Notification: Performance of matching and sorting (n=42): time 0.00192/0.5799, allocations: 1.183 MB / 0.5777 GB, free: 1.633 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.574e-05/0.5799, allocations: 122.9 kB / 0.5778 GB, free: 1.488 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004554/0.5804, allocations: 365.1 kB / 0.5782 GB, free: 1.129 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.5805, allocations: 37.69 kB / 0.5782 GB, free: 1.086 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003523/0.5808, allocations: 359.5 kB / 0.5785 GB, free: 0.7266 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001268/0.581, allocations: 138.1 kB / 0.5787 GB, free: 0.5898 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.43e-05/0.581, allocations: 0 / 0.5787 GB, free: 0.5898 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.5812, allocations: 366.8 kB / 0.579 GB, free: 228 kB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002749/0.5815, allocations: 181.3 kB / 0.5792 GB, free: 44 kB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004282/0.5819, allocations: 357.9 kB / 0.5795 GB, free: 15.62 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003526/0.5823, allocations: 224.6 kB / 0.5797 GB, free: 15.4 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.5823, allocations: 0 / 0.5797 GB, free: 15.4 MB / 427.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00102/0.5833, allocations: 0.6169 MB / 0.5803 GB, free: 14.77 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.198e-05/0.5834, allocations: 52.09 kB / 0.5804 GB, free: 14.72 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.5834, allocations: 8 kB / 0.5804 GB, free: 14.71 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002162/0.5836, allocations: 48.83 kB / 0.5805 GB, free: 14.66 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004501/0.5841, allocations: 111.8 kB / 0.5806 GB, free: 14.55 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.5853, allocations: 1.416 MB / 0.5819 GB, free: 13.02 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.5857, allocations: 23.97 kB / 0.582 GB, free: 13 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-05/0.5858, allocations: 43.91 kB / 0.582 GB, free: 12.96 MB / 427.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * 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: 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 prepare postOptimizeDAE: time 0.000173/0.586, allocations: 140.9 kB / 0.5821 GB, free: 12.81 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006828/0.5867, allocations: 437.5 kB / 0.5826 GB, free: 12.38 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.597e-05/0.5867, allocations: 51.34 kB / 0.5826 GB, free: 12.32 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008042/0.5875, allocations: 463.3 kB / 0.583 GB, free: 11.86 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.5876, allocations: 4 kB / 0.5831 GB, free: 11.86 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.5876, allocations: 7.953 kB / 0.5831 GB, free: 11.85 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.5876, allocations: 4.062 kB / 0.5831 GB, free: 11.84 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001824/0.5894, allocations: 1.217 MB / 0.5843 GB, free: 10.57 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.5894, allocations: 8.062 kB / 0.5843 GB, free: 10.56 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003208/0.5898, allocations: 63.89 kB / 0.5843 GB, free: 10.5 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001397/0.5899, allocations: 44.81 kB / 0.5844 GB, free: 10.45 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.826e-05/0.59, allocations: 11.98 kB / 0.5844 GB, free: 10.44 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/0.5911, allocations: 1.412 MB / 0.5858 GB, free: 8.91 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.5911, allocations: 4 kB / 0.5858 GB, free: 8.906 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.5922, allocations: 0.7969 MB / 0.5865 GB, free: 8.062 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002277/0.5925, allocations: 160.4 kB / 0.5867 GB, free: 7.887 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.587e-05/0.5926, allocations: 27.94 kB / 0.5867 GB, free: 7.859 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003786/0.5929, allocations: 43.94 kB / 0.5868 GB, free: 7.816 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.701e-05/0.593, allocations: 27.97 kB / 0.5868 GB, free: 7.789 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.5931, allocations: 19.92 kB / 0.5868 GB, free: 7.77 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0003049/0.5934, allocations: 278.9 kB / 0.5871 GB, free: 7.5 MB / 427.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5934, allocations: 0 / 0.5871 GB, free: 7.5 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.000689/0.5941, allocations: 132 kB / 0.5872 GB, free: 7.371 MB / 427.1 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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 36 * 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: 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.001453/0.5955, allocations: 1.586 MB / 0.5887 GB, free: 5.734 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.5966, allocations: 0.668 MB / 0.5894 GB, free: 5.043 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5967, allocations: 0 / 0.5894 GB, free: 5.043 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004517/0.5971, allocations: 322.1 kB / 0.5897 GB, free: 4.719 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006551/0.5978, allocations: 97.97 kB / 0.5898 GB, free: 4.625 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002362/0.6002, allocations: 1.239 MB / 0.591 GB, free: 3.332 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005774/0.6007, allocations: 0.9874 MB / 0.592 GB, free: 2.32 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0003512/0.6011, allocations: 104.6 kB / 0.5921 GB, free: 2.219 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003159/0.6014, allocations: 231.4 kB / 0.5923 GB, free: 1.992 MB / 427.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6014, allocations: 0 / 0.5923 GB, free: 1.992 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03489/0.6363, allocations: 10.45 MB / 0.6025 GB, free: 7.555 MB / 443.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/0.6366, allocations: 144.1 kB / 0.6026 GB, free: 7.363 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/3.007, allocations: 0 / 0.6026 GB, free: 7.363 MB / 443.1 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