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.001486/0.001486, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 221.5 MB / 230.3 MB, free: 7.5 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.001103/0.001103, allocations: 91.59 kB / 281.2 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.774e-05/1.777e-05, allocations: 4 kB / 337.1 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1186, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3828/0.5015, allocations: 103.2 MB / 490.7 MB, free: 7.547 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.5018, allocations: 63.97 kB / 490.8 MB, free: 7.484 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4724/0.9742, allocations: 94.86 MB / 0.5719 GB, free: 104.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.9742, allocations: 7.875 kB / 0.5719 GB, free: 104.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.264e-05/0.9743, allocations: 20.72 kB / 0.572 GB, free: 104.2 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003252/0.9776, allocations: 1.61 MB / 0.5735 GB, free: 103.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.9776, allocations: 10.22 kB / 0.5735 GB, free: 103.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002562/0.9779, allocations: 194.3 kB / 0.5737 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.9796, allocations: 1.208 MB / 0.5749 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.9796, allocations: 15.19 kB / 0.5749 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.288e-05/0.9797, allocations: 15.34 kB / 0.5749 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004833/0.9802, allocations: 362.4 kB / 0.5753 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005169/0.9807, allocations: 409.9 kB / 0.5757 GB, free: 102.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.9807, allocations: 0 / 0.5757 GB, free: 102.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.196e-05/0.9807, allocations: 0 / 0.5757 GB, free: 102.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.9808, allocations: 18.64 kB / 0.5757 GB, free: 102.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002751/0.9835, allocations: 1.586 MB / 0.5772 GB, free: 102.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004422/0.984, allocations: 268.8 kB / 0.5775 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003874/0.9844, allocations: 355.9 kB / 0.5778 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01668/1.001, allocations: 18.13 MB / 0.5955 GB, free: 88.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003151/1.001, allocations: 203.2 kB / 0.5957 GB, free: 88.87 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 2.285e-06/1.002, allocations: 0 / 0.5957 GB, free: 88.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009153/1.002, allocations: 474.4 kB / 0.5962 GB, free: 88.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/1.002, allocations: 165.8 kB / 0.5963 GB, free: 88.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/1.004, allocations: 1.104 MB / 0.5974 GB, free: 88.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/1.004, allocations: 29.64 kB / 0.5975 GB, free: 88.31 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000449/1.004, allocations: 0.7232 MB / 0.5982 GB, free: 88.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.244e-05/1.005, allocations: 88.28 kB / 0.5982 GB, free: 88.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.617e-05/1.005, allocations: 0 / 0.5982 GB, free: 88.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.954e-05/1.005, allocations: 324.1 kB / 0.5986 GB, free: 87.78 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/1.005, allocations: 97.7 kB / 0.5986 GB, free: 87.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/1.005, allocations: 324.6 kB / 0.599 GB, free: 87.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002256/1.005, allocations: 139 kB / 0.5991 GB, free: 87.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/1.005, allocations: 5.984 kB / 0.5991 GB, free: 87.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009304/1.006, allocations: 0.5974 MB / 0.5997 GB, free: 87.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/1.006, allocations: 7.469 kB / 0.5997 GB, free: 87.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.327e-05/1.006, allocations: 44.41 kB / 0.5997 GB, free: 87.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002574/1.007, allocations: 132.8 kB / 0.5999 GB, free: 87.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004078/1.007, allocations: 115.9 kB / 0.6 GB, free: 87.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004752/1.007, allocations: 0.7014 MB / 0.6006 GB, free: 86.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008548/1.008, allocations: 75.97 kB / 0.6007 GB, free: 86.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.211e-05/1.008, allocations: 37.61 kB / 0.6008 GB, free: 86.73 MB / 426.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 () * 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.0001213/1.009, allocations: 128 kB / 0.6009 GB, free: 86.61 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005777/1.009, allocations: 487.5 kB / 0.6013 GB, free: 86.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/1.009, allocations: 184.2 kB / 0.6015 GB, free: 86.37 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/1.011, allocations: 0.6427 MB / 0.6021 GB, free: 86.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/1.011, allocations: 7.406 kB / 0.6022 GB, free: 86.23 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.011, allocations: 2.875 kB / 0.6022 GB, free: 86.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/1.011, allocations: 3.703 kB / 0.6022 GB, free: 86.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001596/1.012, allocations: 1.169 MB / 0.6033 GB, free: 85.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.424e-05/1.012, allocations: 36.66 kB / 0.6033 GB, free: 85.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/1.013, allocations: 60.11 kB / 0.6034 GB, free: 85.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001949/1.013, allocations: 120.5 kB / 0.6035 GB, free: 85.88 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/1.013, allocations: 17.88 kB / 0.6035 GB, free: 85.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004423/1.013, allocations: 0.6909 MB / 0.6042 GB, free: 85.33 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/1.013, allocations: 3.938 kB / 0.6042 GB, free: 85.33 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007687/1.014, allocations: 0.6248 MB / 0.6048 GB, free: 84.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000368/1.015, allocations: 291 kB / 0.6051 GB, free: 84.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/1.015, allocations: 3.938 kB / 0.6051 GB, free: 84.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004548/1.015, allocations: 34.86 kB / 0.6051 GB, free: 84.72 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.676e-05/1.015, allocations: 41.88 kB / 0.6052 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.952e-05/1.015, allocations: 30.28 kB / 0.6052 GB, free: 84.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009865/1.016, allocations: 0.8282 MB / 0.606 GB, free: 84.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.016, allocations: 0 / 0.606 GB, free: 84.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008964/1.017, allocations: 332 kB / 0.6063 GB, free: 84.28 MB / 426.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) * 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.001704/1.019, allocations: 1.925 MB / 0.6082 GB, free: 83.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006253/1.02, allocations: 387.5 kB / 0.6086 GB, free: 82.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/1.02, allocations: 3.438 kB / 0.6086 GB, free: 82.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003091/1.02, allocations: 241.6 kB / 0.6088 GB, free: 82.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/1.021, allocations: 280.3 kB / 0.6091 GB, free: 82.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/1.024, allocations: 1.76 MB / 0.6108 GB, free: 82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005397/1.025, allocations: 1.179 MB / 0.6119 GB, free: 81.27 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005742/1.026, allocations: 179.2 kB / 0.6121 GB, free: 81.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004507/1.026, allocations: 0.5526 MB / 0.6127 GB, free: 80.79 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/1.026, allocations: 0 / 0.6127 GB, free: 80.79 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0548/1.081, allocations: 28.98 MB / 0.641 GB, free: 61.68 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001286/1.081, allocations: 131.1 kB / 0.6411 GB, free: 61.48 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.344/4.425, allocations: 0 / 0.6411 GB, free: 61.48 MB / 426.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