Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 181 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009426/0.0009426, allocations: 89.38 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003005/0.0003006, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2765, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1408/0.4173, allocations: 104.4 MB / 0.4941 GB, free: 7.996 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.4177, allocations: 71.97 kB / 0.4942 GB, free: 7.926 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9596/1.377, allocations: 219.8 MB / 0.7089 GB, free: 60.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.377, allocations: 3.938 kB / 0.7089 GB, free: 60.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000247/1.378, allocations: 82.31 kB / 0.7089 GB, free: 60.96 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01164/1.389, allocations: 6.048 MB / 0.7148 GB, free: 57.58 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/1.389, allocations: 8.406 kB / 0.7148 GB, free: 57.58 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005534/1.39, allocations: 158.1 kB / 0.715 GB, free: 57.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001477/1.391, allocations: 0.7466 MB / 0.7157 GB, free: 57.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009059/1.4, allocations: 4.523 MB / 0.7201 GB, free: 56.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.622e-05/1.4, allocations: 71.25 kB / 0.7202 GB, free: 56.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002405/1.401, allocations: 101.2 kB / 0.7203 GB, free: 56.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002295/1.403, allocations: 1.536 MB / 0.7218 GB, free: 55.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/1.403, allocations: 0 / 0.7218 GB, free: 55.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/1.403, allocations: 36.62 kB / 0.7218 GB, free: 55.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.999e-05/1.403, allocations: 47.47 kB / 0.7219 GB, free: 55.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002148/1.405, allocations: 1.513 MB / 0.7234 GB, free: 55.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01118/1.417, allocations: 5.858 MB / 0.7291 GB, free: 54.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/1.418, allocations: 1.023 MB / 0.7301 GB, free: 54.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05851/1.477, allocations: 71.37 MB / 0.7998 GB, free: 80 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/1.478, allocations: 0.5753 MB / 0.8003 GB, free: 15.49 MB / 458.7 MB Notification: Performance of pre-optimization done (n=85): time 5.831e-06/1.478, allocations: 0 / 0.8003 GB, free: 15.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=85): time 0.004505/1.482, allocations: 2.581 MB / 0.8029 GB, free: 12.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002447/1.483, allocations: 479.2 kB / 0.8033 GB, free: 12.19 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01073/1.493, allocations: 4.834 MB / 0.808 GB, free: 7.391 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004771/1.494, allocations: 41.7 kB / 0.8081 GB, free: 7.344 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003339/1.497, allocations: 2.944 MB / 0.811 GB, free: 4.398 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007651/1.498, allocations: 302 kB / 0.8112 GB, free: 4.105 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.979e-05/1.498, allocations: 32 kB / 0.8113 GB, free: 4.074 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002533/1.498, allocations: 357.9 kB / 0.8116 GB, free: 3.719 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/1.5, allocations: 423.8 kB / 0.812 GB, free: 3.305 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/1.501, allocations: 1.203 MB / 0.8132 GB, free: 1.734 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/1.502, allocations: 0.5871 MB / 0.8138 GB, free: 1.176 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.718e-05/1.502, allocations: 11.95 kB / 0.8138 GB, free: 1.164 MB / 458.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00439/1.507, allocations: 2.234 MB / 0.816 GB, free: 15 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/1.507, allocations: 16 kB / 0.816 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002244/1.507, allocations: 160.8 kB / 0.8161 GB, free: 14.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.573e-05/1.507, allocations: 36 kB / 0.8162 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/1.508, allocations: 371.4 kB / 0.8165 GB, free: 14.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-05/1.508, allocations: 47.8 kB / 0.8166 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002507/1.511, allocations: 202.2 kB / 0.8168 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001826/1.511, allocations: 131.9 kB / 0.8169 GB, free: 14.05 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002022/1.513, allocations: 0.7217 MB / 0.8176 GB, free: 13.32 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001137/1.514, allocations: 0.7256 MB / 0.8183 GB, free: 12.59 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005804/1.52, allocations: 2.264 MB / 0.8205 GB, free: 10.35 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/1.52, allocations: 8 kB / 0.8205 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/1.52, allocations: 2.25 kB / 0.8205 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/1.52, allocations: 3.984 kB / 0.8205 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007821/1.528, allocations: 3.865 MB / 0.8243 GB, free: 6.418 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001678/1.528, allocations: 136 kB / 0.8244 GB, free: 6.285 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007722/1.529, allocations: 159.8 kB / 0.8246 GB, free: 6.129 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.467e-06/1.529, allocations: 0 / 0.8246 GB, free: 6.129 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/1.529, allocations: 67.98 kB / 0.8246 GB, free: 6.062 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.488e-06/1.529, allocations: 7.984 kB / 0.8247 GB, free: 6.055 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.529, allocations: 0 / 0.8247 GB, free: 6.055 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004429/1.533, allocations: 2.309 MB / 0.8269 GB, free: 3.703 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002874/1.536, allocations: 0.9274 MB / 0.8278 GB, free: 2.738 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001624/1.538, allocations: 23.98 kB / 0.8278 GB, free: 2.715 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002285/1.54, allocations: 55.89 kB / 0.8279 GB, free: 2.66 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002552/1.541, allocations: 96.44 kB / 0.828 GB, free: 2.566 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/1.541, allocations: 67.98 kB / 0.828 GB, free: 2.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.3056/1.846, allocations: 3.689 MB / 0.8316 GB, free: 105.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.846, allocations: 1.281 kB / 0.8317 GB, free: 105.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004248/1.851, allocations: 1.165 MB / 0.8328 GB, free: 105.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * 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.006553/1.857, allocations: 4.078 MB / 0.8368 GB, free: 104.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002351/1.86, allocations: 1.465 MB / 0.8382 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/1.86, allocations: 1.375 kB / 0.8382 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009401/1.861, allocations: 0.7899 MB / 0.839 GB, free: 104.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005747/1.866, allocations: 1.151 MB / 0.8401 GB, free: 104.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08856/1.955, allocations: 59.43 MB / 0.8981 GB, free: 60.06 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001836/1.957, allocations: 2.706 MB / 0.9008 GB, free: 59.28 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003231/1.96, allocations: 0.7333 MB / 0.9015 GB, free: 59.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002595/1.963, allocations: 2.417 MB / 0.9039 GB, free: 59.23 MB / 474.7 MB Notification: Performance of SimCode: time 1.443e-06/1.963, allocations: 0 / 0.9039 GB, free: 59.23 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3835/2.346, allocations: 107 MB / 1.008 GB, free: 105.1 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001419/2.346, allocations: 183.1 kB / 1.009 GB, free: 104.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.297/9.643, allocations: 0 / 1.009 GB, free: 104.8 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat