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.001084/0.001084, allocations: 174.5 kB / 13.63 MB, free: 1.684 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.325/1.325, allocations: 221.3 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008798/0.0008798, allocations: 91.56 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.106e-05/3.108e-05, allocations: 4 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3559/0.4642, allocations: 104.4 MB / 498.7 MB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.4646, allocations: 67.97 kB / 498.8 MB, free: 15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6914/1.156, allocations: 219.8 MB / 0.7018 GB, free: 14.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.505e-06/1.156, allocations: 0 / 0.7018 GB, free: 14.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005961/1.157, allocations: 88 kB / 0.7019 GB, free: 14.68 MB / 442.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.01155/1.168, allocations: 4.652 MB / 0.7064 GB, free: 9.965 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.387e-05/1.168, allocations: 12.03 kB / 0.7064 GB, free: 9.953 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006873/1.169, allocations: 157.2 kB / 0.7066 GB, free: 9.789 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001906/1.171, allocations: 0.741 MB / 0.7073 GB, free: 9.039 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01374/1.185, allocations: 4.489 MB / 0.7117 GB, free: 4.465 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/1.185, allocations: 66 kB / 0.7117 GB, free: 4.398 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005565/1.185, allocations: 103.9 kB / 0.7118 GB, free: 4.297 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003375/1.189, allocations: 1.449 MB / 0.7132 GB, free: 2.777 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/1.189, allocations: 0 / 0.7132 GB, free: 2.777 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002144/1.189, allocations: 36 kB / 0.7133 GB, free: 2.742 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.091e-05/1.189, allocations: 39.98 kB / 0.7133 GB, free: 2.703 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002314/1.191, allocations: 1.363 MB / 0.7146 GB, free: 1.336 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2953/1.487, allocations: 5.835 MB / 0.7203 GB, free: 60.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/1.488, allocations: 0.878 MB / 0.7212 GB, free: 60 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/1.489, allocations: 1.161 MB / 0.7223 GB, free: 59.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0687/1.558, allocations: 71.69 MB / 0.7923 GB, free: 23.53 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006812/1.559, allocations: 0.5057 MB / 0.7928 GB, free: 23.47 MB / 458.7 MB Notification: Performance of pre-optimization done (n=85): time 3.517e-06/1.559, allocations: 0 / 0.7928 GB, free: 23.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=85): time 0.002571/1.561, allocations: 1.459 MB / 0.7943 GB, free: 23.05 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002435/1.562, allocations: 484.3 kB / 0.7947 GB, free: 22.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006524/1.568, allocations: 4.761 MB / 0.7994 GB, free: 22.02 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002863/1.568, allocations: 42.89 kB / 0.7994 GB, free: 21.99 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002155/1.571, allocations: 2.94 MB / 0.8023 GB, free: 21.64 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003604/1.571, allocations: 301 kB / 0.8026 GB, free: 21.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.171e-05/1.571, allocations: 28.84 kB / 0.8026 GB, free: 21.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009175/1.572, allocations: 359.5 kB / 0.8029 GB, free: 37.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005881/1.573, allocations: 343.4 kB / 0.8033 GB, free: 37.19 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000848/1.573, allocations: 1.129 MB / 0.8044 GB, free: 36.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006916/1.574, allocations: 0.515 MB / 0.8049 GB, free: 36.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.216e-05/1.574, allocations: 7.656 kB / 0.8049 GB, free: 36.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003375/1.578, allocations: 2.083 MB / 0.8069 GB, free: 35.79 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/1.578, allocations: 16.69 kB / 0.8069 GB, free: 35.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001711/1.578, allocations: 157.6 kB / 0.8071 GB, free: 35.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.022e-05/1.578, allocations: 40.72 kB / 0.8071 GB, free: 35.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/1.579, allocations: 369.4 kB / 0.8075 GB, free: 35.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.457e-05/1.579, allocations: 59.11 kB / 0.8075 GB, free: 35.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002942/1.582, allocations: 203.1 kB / 0.8077 GB, free: 35.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002034/1.582, allocations: 122.8 kB / 0.8078 GB, free: 35.74 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 () * 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.000338/1.583, allocations: 221.7 kB / 0.8081 GB, free: 35.63 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009324/1.583, allocations: 0.7192 MB / 0.8088 GB, free: 35.26 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005304/1.589, allocations: 2.12 MB / 0.8108 GB, free: 35.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/1.589, allocations: 10.39 kB / 0.8108 GB, free: 35.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/1.589, allocations: 0 / 0.8108 GB, free: 35.12 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/1.589, allocations: 11.64 kB / 0.8109 GB, free: 35.12 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00823/1.597, allocations: 3.724 MB / 0.8145 GB, free: 34.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001498/1.597, allocations: 137.7 kB / 0.8146 GB, free: 34.65 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007927/1.598, allocations: 162.5 kB / 0.8148 GB, free: 34.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.264e-05/1.598, allocations: 7.734 kB / 0.8148 GB, free: 34.64 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.713e-05/1.598, allocations: 61.48 kB / 0.8148 GB, free: 34.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.882e-06/1.598, allocations: 5.125 kB / 0.8148 GB, free: 34.64 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/1.598, allocations: 3.906 kB / 0.8148 GB, free: 34.64 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002827/1.601, allocations: 2.097 MB / 0.8169 GB, free: 33.95 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002108/1.603, allocations: 0.9336 MB / 0.8178 GB, free: 33.42 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/1.604, allocations: 20.44 kB / 0.8178 GB, free: 33.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/1.606, allocations: 48.06 kB / 0.8179 GB, free: 33.42 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002242/1.606, allocations: 99.09 kB / 0.818 GB, free: 33.42 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/1.606, allocations: 71.8 kB / 0.818 GB, free: 33.42 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006371/1.613, allocations: 3.617 MB / 0.8216 GB, free: 33.13 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.62e-07/1.613, allocations: 0 / 0.8216 GB, free: 33.13 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004125/1.617, allocations: 1.165 MB / 0.8227 GB, free: 33.12 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) * 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.004812/1.622, allocations: 3.862 MB / 0.8265 GB, free: 31.86 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001863/1.623, allocations: 1.323 MB / 0.8278 GB, free: 31.59 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/1.624, allocations: 0 / 0.8278 GB, free: 31.59 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007725/1.624, allocations: 0.7159 MB / 0.8285 GB, free: 31.34 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005049/1.629, allocations: 1.16 MB / 0.8296 GB, free: 31.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/1.642, allocations: 6.93 MB / 0.8364 GB, free: 28.57 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001651/1.644, allocations: 2.714 MB / 0.839 GB, free: 27.79 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002608/1.646, allocations: 0.7277 MB / 0.8397 GB, free: 27.75 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001986/1.648, allocations: 2.418 MB / 0.8421 GB, free: 25.79 MB / 474.7 MB Notification: Performance of SimCode: time 8.11e-07/1.648, allocations: 0 / 0.8421 GB, free: 25.79 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4159/2.064, allocations: 104.5 MB / 0.9442 GB, free: 101.5 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/2.064, allocations: 157.6 kB / 0.9443 GB, free: 101.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.5/9.565, allocations: 4 kB / 0.9443 GB, free: 101.3 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