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.001395/0.001395, allocations: 174.8 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.311/1.311, allocations: 221.3 MB / 235.5 MB, free: 2.934 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.000893/0.0008929, allocations: 101.9 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.734e-05/2.745e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09972/0.09977, allocations: 50.41 MB / 394.3 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3229/0.4227, allocations: 103.8 MB / 498.2 MB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/0.423, allocations: 71.95 kB / 498.3 MB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.442/0.865, allocations: 99.33 MB / 0.5836 GB, free: 104.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.552e-06/0.865, allocations: 0 / 0.5836 GB, free: 104.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.063e-05/0.8651, allocations: 22.19 kB / 0.5836 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.003342/0.8685, allocations: 1.61 MB / 0.5852 GB, free: 103.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.8685, allocations: 13.28 kB / 0.5852 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001339/0.8687, allocations: 74.81 kB / 0.5852 GB, free: 103.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.869, allocations: 199.9 kB / 0.5854 GB, free: 103 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/0.871, allocations: 1.197 MB / 0.5866 GB, free: 102.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.871, allocations: 17.56 kB / 0.5866 GB, free: 102.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.172e-05/0.8711, allocations: 25.78 kB / 0.5866 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006404/0.8718, allocations: 453.9 kB / 0.5871 GB, free: 102.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.8718, allocations: 0 / 0.5871 GB, free: 102.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.374e-05/0.8718, allocations: 11.56 kB / 0.5871 GB, free: 102.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.8719, allocations: 11.05 kB / 0.5871 GB, free: 102.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005123/0.8724, allocations: 375.2 kB / 0.5875 GB, free: 102 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.8749, allocations: 1.645 MB / 0.5891 GB, free: 101.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003627/0.8753, allocations: 282.6 kB / 0.5893 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003929/0.8757, allocations: 370.5 kB / 0.5897 GB, free: 100.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0145/0.8902, allocations: 18.13 MB / 0.6074 GB, free: 86.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003496/0.8906, allocations: 211.7 kB / 0.6076 GB, free: 86.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 2.955e-06/0.8906, allocations: 2.859 kB / 0.6076 GB, free: 86.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009316/0.8916, allocations: 498.6 kB / 0.6081 GB, free: 85.92 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.8916, allocations: 161.8 kB / 0.6082 GB, free: 85.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001636/0.8933, allocations: 1.201 MB / 0.6094 GB, free: 85.22 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.8933, allocations: 40.09 kB / 0.6094 GB, free: 85.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004703/0.8938, allocations: 0.7161 MB / 0.6101 GB, free: 84.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.684e-05/0.8939, allocations: 92.11 kB / 0.6102 GB, free: 84.53 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.536e-05/0.8939, allocations: 10.5 kB / 0.6102 GB, free: 84.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.012e-05/0.894, allocations: 328.6 kB / 0.6106 GB, free: 84.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/0.8942, allocations: 106.7 kB / 0.6107 GB, free: 84.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.8944, allocations: 334.7 kB / 0.611 GB, free: 83.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002304/0.8947, allocations: 158.7 kB / 0.6111 GB, free: 83.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.8947, allocations: 3.938 kB / 0.6111 GB, free: 83.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008911/0.8956, allocations: 0.6551 MB / 0.6118 GB, free: 83.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.8956, allocations: 7.781 kB / 0.6118 GB, free: 83.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-05/0.8957, allocations: 40.66 kB / 0.6118 GB, free: 83.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002802/0.896, allocations: 134.8 kB / 0.6119 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003998/0.8964, allocations: 118.8 kB / 0.6121 GB, free: 83.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005001/0.8969, allocations: 0.6717 MB / 0.6127 GB, free: 82.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006593/0.8975, allocations: 90.45 kB / 0.6128 GB, free: 82.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.492e-05/0.8976, allocations: 35.16 kB / 0.6128 GB, free: 82.84 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.0001159/0.8977, allocations: 138 kB / 0.613 GB, free: 82.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/0.8979, allocations: 187.2 kB / 0.6131 GB, free: 82.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00139/0.8993, allocations: 0.6788 MB / 0.6138 GB, free: 82.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.8993, allocations: 3.969 kB / 0.6138 GB, free: 82.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.8993, allocations: 3.938 kB / 0.6138 GB, free: 82.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.289e-06/0.8993, allocations: 3.844 kB / 0.6138 GB, free: 82.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.9011, allocations: 1.237 MB / 0.615 GB, free: 81.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.842e-05/0.9011, allocations: 34.12 kB / 0.6151 GB, free: 81.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002502/0.9014, allocations: 52.05 kB / 0.6151 GB, free: 81.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002158/0.9016, allocations: 130 kB / 0.6152 GB, free: 81.63 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.723e-05/0.9017, allocations: 21.36 kB / 0.6153 GB, free: 81.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004222/0.9021, allocations: 0.6708 MB / 0.6159 GB, free: 81.06 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.9021, allocations: 3.953 kB / 0.6159 GB, free: 81.06 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006667/0.9028, allocations: 0.6399 MB / 0.6165 GB, free: 80.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004194/0.9032, allocations: 287.4 kB / 0.6168 GB, free: 80.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.9033, allocations: 11.2 kB / 0.6168 GB, free: 80.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004373/0.9038, allocations: 43.59 kB / 0.6169 GB, free: 80.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.9039, allocations: 39.5 kB / 0.6169 GB, free: 80.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.411e-05/0.904, allocations: 20.47 kB / 0.6169 GB, free: 80.43 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001084/0.9051, allocations: 0.9249 MB / 0.6178 GB, free: 80.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9051, allocations: 0 / 0.6178 GB, free: 80.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009814/0.9061, allocations: 363 kB / 0.6182 GB, free: 79.97 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.001577/0.9077, allocations: 1.837 MB / 0.62 GB, free: 78.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007032/0.9084, allocations: 440 kB / 0.6204 GB, free: 78.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.9084, allocations: 0 / 0.6204 GB, free: 78.55 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003481/0.9087, allocations: 240.2 kB / 0.6206 GB, free: 78.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.9098, allocations: 284.5 kB / 0.6209 GB, free: 78.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00269/0.9125, allocations: 1.781 MB / 0.6226 GB, free: 77.46 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004623/0.913, allocations: 1.178 MB / 0.6238 GB, free: 76.46 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005576/0.9135, allocations: 175.2 kB / 0.6239 GB, free: 76.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004343/0.914, allocations: 0.5549 MB / 0.6245 GB, free: 75.82 MB / 426.7 MB Notification: Performance of SimCode: time 7.71e-07/0.914, allocations: 0 / 0.6245 GB, free: 75.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05436/0.9684, allocations: 33.46 MB / 0.6572 GB, free: 43.68 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001487/0.9686, allocations: 179.1 kB / 0.6573 GB, free: 43.45 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.157/4.126, allocations: 0 / 0.6573 GB, free: 43.45 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