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.001332/0.001332, allocations: 174.2 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.71/1.71, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.0008793/0.0008792, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1625/0.1625, allocations: 37.98 MB / 353.5 MB, free: 1.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.395e-05/3.399e-05, allocations: 4 kB / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1214, allocations: 56.31 MB / 474.1 MB, free: 4.715 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4441/0.5655, allocations: 102.1 MB / 0.5628 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.5658, allocations: 94 kB / 0.5629 GB, free: 488 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04094/0.6068, allocations: 14.37 MB / 0.5769 GB, free: 4.113 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6068, allocations: 4 kB / 0.5769 GB, free: 4.109 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.719e-05/0.6069, allocations: 20 kB / 0.5769 GB, free: 4.09 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00245/0.6094, allocations: 0.9561 MB / 0.5778 GB, free: 3.125 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.6094, allocations: 8.031 kB / 0.5778 GB, free: 3.117 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003507/0.6098, allocations: 110 kB / 0.578 GB, free: 3.039 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003508/0.6102, allocations: 90.92 kB / 0.578 GB, free: 2.949 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003723/0.6139, allocations: 1.183 MB / 0.5792 GB, free: 1.922 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001375/0.614, allocations: 105.5 kB / 0.5793 GB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/0.6142, allocations: 68.73 kB / 0.5794 GB, free: 1.777 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.6157, allocations: 0.814 MB / 0.5802 GB, free: 1.152 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.6158, allocations: 4 kB / 0.5802 GB, free: 1.148 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.849e-05/0.6159, allocations: 27.89 kB / 0.5802 GB, free: 1.141 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.217e-05/0.6159, allocations: 16 kB / 0.5802 GB, free: 1.125 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.617, allocations: 0.558 MB / 0.5807 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004252/0.6212, allocations: 2.757 MB / 0.5834 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.6225, allocations: 0.8131 MB / 0.5842 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003715/0.6228, allocations: 241.1 kB / 0.5845 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.6229, allocations: 4.328 kB / 0.5845 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004779/0.6234, allocations: 300.4 kB / 0.5848 GB, free: 13.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.887e-06/0.6234, allocations: 0 / 0.5848 GB, free: 13.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=42): time 0.002665/0.6261, allocations: 1.377 MB / 0.5861 GB, free: 11.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.116e-05/0.6262, allocations: 114.3 kB / 0.5862 GB, free: 11.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006354/0.6268, allocations: 451.6 kB / 0.5866 GB, free: 11.45 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.314e-05/0.6269, allocations: 43.56 kB / 0.5867 GB, free: 11.41 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002847/0.6272, allocations: 355.1 kB / 0.587 GB, free: 11.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.6273, allocations: 141.5 kB / 0.5872 GB, free: 11.04 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.958e-05/0.6274, allocations: 10.75 kB / 0.5872 GB, free: 11.03 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.6276, allocations: 378.8 kB / 0.5875 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003709/0.628, allocations: 196.4 kB / 0.5877 GB, free: 10.55 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/0.6284, allocations: 360.3 kB / 0.5881 GB, free: 10.21 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004738/0.6289, allocations: 291.2 kB / 0.5883 GB, free: 10 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.6289, allocations: 4 kB / 0.5883 GB, free: 9.996 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001247/0.6302, allocations: 0.8151 MB / 0.5891 GB, free: 9.305 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.435e-05/0.6303, allocations: 53.31 kB / 0.5892 GB, free: 9.254 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.6303, allocations: 8.609 kB / 0.5892 GB, free: 9.246 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000263/0.6306, allocations: 76.94 kB / 0.5893 GB, free: 9.176 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004131/0.631, allocations: 111.7 kB / 0.5894 GB, free: 9.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002544/0.6335, allocations: 2.838 MB / 0.5921 GB, free: 6.102 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.634, allocations: 27.48 kB / 0.5922 GB, free: 6.082 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.429e-05/0.6341, allocations: 43.78 kB / 0.5922 GB, free: 6.047 MB / 394.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 () * 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.0001968/0.6343, allocations: 160 kB / 0.5924 GB, free: 5.898 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.6344, allocations: 63.2 kB / 0.5924 GB, free: 5.836 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009636/0.6354, allocations: 0.5891 MB / 0.593 GB, free: 5.344 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.6354, allocations: 4 kB / 0.593 GB, free: 5.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.6354, allocations: 4 kB / 0.593 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.6354, allocations: 0 / 0.593 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.6375, allocations: 1.441 MB / 0.5944 GB, free: 4.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.6375, allocations: 7.984 kB / 0.5944 GB, free: 4.082 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003205/0.6378, allocations: 55.97 kB / 0.5945 GB, free: 4.027 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001833/0.638, allocations: 66.67 kB / 0.5945 GB, free: 3.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.144e-05/0.6381, allocations: 18.73 kB / 0.5946 GB, free: 3.953 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002306/0.6404, allocations: 2.835 MB / 0.5973 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.6404, allocations: 3.953 kB / 0.5973 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.6418, allocations: 0.937 MB / 0.5982 GB, free: 180 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002944/0.6421, allocations: 172.7 kB / 0.5984 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.6422, allocations: 29.92 kB / 0.5984 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004291/0.6427, allocations: 48.7 kB / 0.5985 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.467e-05/0.6428, allocations: 32.2 kB / 0.5985 GB, free: 15.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/0.6428, allocations: 22.94 kB / 0.5985 GB, free: 15.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004329/0.6432, allocations: 343 kB / 0.5989 GB, free: 15.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6433, allocations: 0 / 0.5989 GB, free: 15.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007335/0.644, allocations: 160.4 kB / 0.599 GB, free: 15.5 MB / 410.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]) * 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.001838/0.6458, allocations: 1.719 MB / 0.6007 GB, free: 13.92 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.6471, allocations: 0.832 MB / 0.6015 GB, free: 13.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.6471, allocations: 0 / 0.6015 GB, free: 13.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006444/0.6478, allocations: 462.9 kB / 0.6019 GB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006915/0.6485, allocations: 140.8 kB / 0.6021 GB, free: 12.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.651, allocations: 1.303 MB / 0.6034 GB, free: 11.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000627/0.6517, allocations: 0.9866 MB / 0.6043 GB, free: 10.51 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003763/0.6521, allocations: 101 kB / 0.6044 GB, free: 10.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003/0.6524, allocations: 232.3 kB / 0.6046 GB, free: 10.35 MB / 410.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6524, allocations: 0 / 0.6046 GB, free: 10.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03211/0.6845, allocations: 12.28 MB / 0.6166 GB, free: 14.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002248/0.6848, allocations: 177.3 kB / 0.6168 GB, free: 13.88 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.455/3.14, allocations: 4 kB / 0.6168 GB, free: 13.88 MB / 426.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