Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",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.001993/0.001993, allocations: 181.9 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.44/1.44, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0009464/0.0009463, allocations: 100 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000267/0.000267, allocations: 4 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2776, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1266/0.4042, allocations: 103.9 MB / 0.4936 GB, free: 8.504 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.4045, allocations: 81.05 kB / 0.4937 GB, free: 8.426 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4/0.8045, allocations: 99.41 MB / 0.5908 GB, free: 21.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.8045, allocations: 0 / 0.5908 GB, free: 21.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.488e-05/0.8046, allocations: 20 kB / 0.5908 GB, free: 21.58 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003988/0.8086, allocations: 1.949 MB / 0.5927 GB, free: 19.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.8086, allocations: 8.031 kB / 0.5927 GB, free: 19.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001461/0.8088, allocations: 74.53 kB / 0.5928 GB, free: 19.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002974/0.8091, allocations: 199 kB / 0.593 GB, free: 19.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002009/0.8111, allocations: 1.211 MB / 0.5942 GB, free: 18.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.8111, allocations: 21.25 kB / 0.5942 GB, free: 17.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.901e-05/0.8112, allocations: 31.92 kB / 0.5942 GB, free: 17.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008671/0.8121, allocations: 0.5026 MB / 0.5947 GB, free: 17.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.8121, allocations: 3.938 kB / 0.5947 GB, free: 17.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.478e-05/0.8122, allocations: 12 kB / 0.5947 GB, free: 17.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.8122, allocations: 19.92 kB / 0.5947 GB, free: 17.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009366/0.8131, allocations: 0.502 MB / 0.5952 GB, free: 16.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.8158, allocations: 1.654 MB / 0.5968 GB, free: 15.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008061/0.8166, allocations: 416.8 kB / 0.5972 GB, free: 14.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01625/0.8329, allocations: 18.04 MB / 0.6149 GB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006768/0.8336, allocations: 291 kB / 0.6151 GB, free: 9.832 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 3.136e-06/0.8336, allocations: 0 / 0.6151 GB, free: 9.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.00244/0.8361, allocations: 0.8809 MB / 0.616 GB, free: 8.922 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.8362, allocations: 162.2 kB / 0.6162 GB, free: 8.727 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00237/0.8386, allocations: 1.222 MB / 0.6174 GB, free: 7.473 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.969e-05/0.8387, allocations: 33.7 kB / 0.6174 GB, free: 7.434 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007932/0.8395, allocations: 0.7226 MB / 0.6181 GB, free: 6.707 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.8396, allocations: 90.73 kB / 0.6182 GB, free: 6.617 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.8396, allocations: 12 kB / 0.6182 GB, free: 6.605 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.8398, allocations: 329.9 kB / 0.6185 GB, free: 6.277 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004822/0.8403, allocations: 173 kB / 0.6187 GB, free: 6.105 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006052/0.8409, allocations: 407.7 kB / 0.6191 GB, free: 5.609 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005165/0.8414, allocations: 222.3 kB / 0.6193 GB, free: 5.395 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.8414, allocations: 0 / 0.6193 GB, free: 5.395 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001648/0.8431, allocations: 0.7867 MB / 0.62 GB, free: 4.598 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.8431, allocations: 8 kB / 0.62 GB, free: 4.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-05/0.8432, allocations: 44.08 kB / 0.6201 GB, free: 4.547 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003245/0.8435, allocations: 132.8 kB / 0.6202 GB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004239/0.844, allocations: 123.8 kB / 0.6203 GB, free: 4.293 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006344/0.8446, allocations: 0.6734 MB / 0.621 GB, free: 3.594 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000839/0.8455, allocations: 95.44 kB / 0.6211 GB, free: 3.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.666e-05/0.8455, allocations: 32 kB / 0.6211 GB, free: 3.469 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005764/0.8461, allocations: 276.1 kB / 0.6214 GB, free: 3.191 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000325/0.8464, allocations: 189.8 kB / 0.6216 GB, free: 3.004 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002152/0.8486, allocations: 0.8134 MB / 0.6223 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.8486, allocations: 4 kB / 0.6224 GB, free: 2.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.8486, allocations: 0 / 0.6224 GB, free: 2.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.8487, allocations: 4 kB / 0.6224 GB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002801/0.8515, allocations: 1.376 MB / 0.6237 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-05/0.8515, allocations: 35.98 kB / 0.6237 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000268/0.8518, allocations: 56.02 kB / 0.6238 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002408/0.852, allocations: 124.8 kB / 0.6239 GB, free: 0.5156 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.179e-05/0.8521, allocations: 19.98 kB / 0.6239 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005972/0.8527, allocations: 0.6666 MB / 0.6246 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.8527, allocations: 8.094 kB / 0.6246 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.8542, allocations: 0.7777 MB / 0.6253 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006475/0.8548, allocations: 286.8 kB / 0.6256 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/0.8551, allocations: 15.95 kB / 0.6256 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005244/0.8556, allocations: 47.89 kB / 0.6257 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.8558, allocations: 35.95 kB / 0.6257 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.288e-05/0.8558, allocations: 24 kB / 0.6257 GB, free: 14.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001441/0.8573, allocations: 0.9454 MB / 0.6267 GB, free: 13.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.8573, allocations: 0 / 0.6267 GB, free: 13.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00125/0.8586, allocations: 359.7 kB / 0.627 GB, free: 13.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002972/0.8615, allocations: 1.97 MB / 0.6289 GB, free: 11.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.863, allocations: 0.5473 MB / 0.6295 GB, free: 10.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.863, allocations: 4.125 kB / 0.6295 GB, free: 10.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007196/0.8637, allocations: 307.3 kB / 0.6298 GB, free: 10.35 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.8651, allocations: 282.8 kB / 0.63 GB, free: 10.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0185/0.8837, allocations: 12.33 MB / 0.6421 GB, free: 13.05 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009741/0.8847, allocations: 1.183 MB / 0.6432 GB, free: 11.83 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008044/0.8855, allocations: 174.5 kB / 0.6434 GB, free: 11.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006531/0.8862, allocations: 0.554 MB / 0.6439 GB, free: 11.1 MB / 426.7 MB Notification: Performance of SimCode: time 2.194e-06/0.8862, allocations: 0 / 0.6439 GB, free: 11.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3099/1.196, allocations: 33.05 MB / 0.6762 GB, free: 112.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/1.196, allocations: 206.4 kB / 0.6764 GB, free: 112.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.235/4.431, allocations: 1.344 kB / 0.6764 GB, free: 112.4 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat