Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001685/0.001685, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 225.4 MB / 240.1 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008707/0.0008706, allocations: 89.44 kB / 292.1 MB, free: 6.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.17e-05, allocations: 4 kB / 350.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 51.48 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.384/0.4888, allocations: 105.2 MB / 0.4954 GB, free: 492 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.4891, allocations: 70.45 kB / 0.4955 GB, free: 456 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7196/1.209, allocations: 220.7 MB / 0.711 GB, free: 25.72 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.804e-06/1.209, allocations: 0 / 0.711 GB, free: 25.72 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002402/1.209, allocations: 84 kB / 0.7111 GB, free: 25.64 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.0079/1.217, allocations: 4.662 MB / 0.7156 GB, free: 20.92 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/1.217, allocations: 8.031 kB / 0.7156 GB, free: 20.91 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002726/1.217, allocations: 161.2 kB / 0.7158 GB, free: 20.75 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/1.218, allocations: 0.7434 MB / 0.7165 GB, free: 20 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008625/1.227, allocations: 4.492 MB / 0.7209 GB, free: 15.42 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.005e-05/1.227, allocations: 66 kB / 0.721 GB, free: 15.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002545/1.227, allocations: 99.34 kB / 0.721 GB, free: 15.26 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/1.23, allocations: 1.453 MB / 0.7225 GB, free: 13.74 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/1.23, allocations: 4 kB / 0.7225 GB, free: 13.73 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/1.23, allocations: 40 kB / 0.7225 GB, free: 13.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.974e-05/1.23, allocations: 35.97 kB / 0.7225 GB, free: 13.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001724/1.232, allocations: 1.356 MB / 0.7239 GB, free: 12.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/1.243, allocations: 5.845 MB / 0.7296 GB, free: 6.379 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/1.244, allocations: 0.8847 MB / 0.7304 GB, free: 5.484 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/1.245, allocations: 1.164 MB / 0.7316 GB, free: 4.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3839/1.629, allocations: 73 MB / 0.8029 GB, free: 26.11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008047/1.63, allocations: 0.5099 MB / 0.8034 GB, free: 26.05 MB / 458.7 MB Notification: Performance of pre-optimization done (n=85): time 4.298e-06/1.63, allocations: 0 / 0.8034 GB, free: 26.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=85): time 0.002902/1.633, allocations: 1.451 MB / 0.8048 GB, free: 25.65 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/1.633, allocations: 479.1 kB / 0.8052 GB, free: 25.09 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008066/1.641, allocations: 4.768 MB / 0.8099 GB, free: 24.63 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002113/1.642, allocations: 42.14 kB / 0.8099 GB, free: 24.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00287/1.644, allocations: 2.941 MB / 0.8128 GB, free: 24.25 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005221/1.645, allocations: 299.2 kB / 0.8131 GB, free: 24.11 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.509e-05/1.645, allocations: 27.25 kB / 0.8131 GB, free: 24.11 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/1.645, allocations: 366.5 kB / 0.8135 GB, free: 23.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008328/1.646, allocations: 341.5 kB / 0.8138 GB, free: 23.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/1.647, allocations: 1.124 MB / 0.8149 GB, free: 22.81 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001166/1.648, allocations: 0.5136 MB / 0.8154 GB, free: 22.79 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.731e-05/1.649, allocations: 7.344 kB / 0.8154 GB, free: 22.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005159/1.654, allocations: 2.096 MB / 0.8174 GB, free: 22.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.103e-05/1.654, allocations: 14.56 kB / 0.8175 GB, free: 22.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002919/1.654, allocations: 160.8 kB / 0.8176 GB, free: 22.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.45e-05/1.654, allocations: 36.45 kB / 0.8176 GB, free: 22.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/1.656, allocations: 374.8 kB / 0.818 GB, free: 22.39 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.309e-05/1.656, allocations: 51.14 kB / 0.8181 GB, free: 22.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002715/1.658, allocations: 201.1 kB / 0.8182 GB, free: 22.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002318/1.659, allocations: 124.6 kB / 0.8184 GB, free: 22.35 MB / 458.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.000302/1.659, allocations: 220.2 kB / 0.8186 GB, free: 22.24 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.66, allocations: 0.7202 MB / 0.8193 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005783/1.666, allocations: 2.122 MB / 0.8214 GB, free: 21.74 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/1.666, allocations: 10.95 kB / 0.8214 GB, free: 21.74 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/1.666, allocations: 0 / 0.8214 GB, free: 21.74 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/1.666, allocations: 1.125 kB / 0.8214 GB, free: 21.74 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007826/1.674, allocations: 3.722 MB / 0.825 GB, free: 21.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001426/1.674, allocations: 138.2 kB / 0.8251 GB, free: 21.28 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008069/1.675, allocations: 165.4 kB / 0.8253 GB, free: 21.28 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/1.675, allocations: 3.906 kB / 0.8253 GB, free: 21.28 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.52e-05/1.675, allocations: 58.34 kB / 0.8253 GB, free: 21.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/1.675, allocations: 4.516 kB / 0.8254 GB, free: 21.28 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/1.675, allocations: 6.781 kB / 0.8254 GB, free: 21.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003261/1.678, allocations: 2.091 MB / 0.8274 GB, free: 36.59 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002074/1.68, allocations: 0.9259 MB / 0.8283 GB, free: 36.06 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000732/1.681, allocations: 17.67 kB / 0.8283 GB, free: 36.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/1.682, allocations: 53.84 kB / 0.8284 GB, free: 36.06 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/1.682, allocations: 109.5 kB / 0.8285 GB, free: 36.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/1.682, allocations: 70.52 kB / 0.8285 GB, free: 36.05 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00577/1.688, allocations: 3.611 MB / 0.8321 GB, free: 35.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.688, allocations: 0 / 0.8321 GB, free: 35.77 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003054/1.691, allocations: 1.178 MB / 0.8332 GB, free: 35.75 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.004152/1.695, allocations: 3.87 MB / 0.837 GB, free: 34.49 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001851/1.697, allocations: 1.32 MB / 0.8383 GB, free: 34.23 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.697, allocations: 3.344 kB / 0.8383 GB, free: 34.23 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00076/1.698, allocations: 0.7107 MB / 0.839 GB, free: 33.98 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00452/1.703, allocations: 1.157 MB / 0.8401 GB, free: 33.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/1.715, allocations: 6.94 MB / 0.8469 GB, free: 31.99 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001704/1.716, allocations: 2.709 MB / 0.8495 GB, free: 31.21 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002837/1.719, allocations: 0.7314 MB / 0.8503 GB, free: 31.16 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002054/1.721, allocations: 2.414 MB / 0.8526 GB, free: 31.15 MB / 474.7 MB Notification: Performance of SimCode: time 1.543e-06/1.721, allocations: 0 / 0.8526 GB, free: 31.15 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4525/2.174, allocations: 104.5 MB / 0.9547 GB, free: 80.85 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001443/2.174, allocations: 159.1 kB / 0.9549 GB, free: 80.62 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.362/10.54, allocations: 5.547 kB / 0.9549 GB, free: 80.62 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat