Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009701/0.0009701, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.267/1.267, allocations: 205.4 MB / 223.1 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008848/0.0008848, allocations: 96.09 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002406/0.0002406, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2339, allocations: 47.58 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1132/0.3472, allocations: 102 MB / 477.9 MB, free: 10.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002149/0.3475, allocations: 75.97 kB / 478 MB, free: 10.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3329/0.6804, allocations: 89.6 MB / 0.5543 GB, free: 61.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.6805, allocations: 4 kB / 0.5543 GB, free: 61.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.234e-05/0.6805, allocations: 20 kB / 0.5543 GB, free: 61.81 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.003249/0.6837, allocations: 1.964 MB / 0.5562 GB, free: 59.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.6838, allocations: 12.02 kB / 0.5562 GB, free: 59.78 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.518e-05/0.6839, allocations: 74.47 kB / 0.5563 GB, free: 59.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.684, allocations: 193.7 kB / 0.5565 GB, free: 59.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.6854, allocations: 1.219 MB / 0.5577 GB, free: 58.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.6854, allocations: 28.52 kB / 0.5577 GB, free: 58.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.121e-05/0.6855, allocations: 27.98 kB / 0.5577 GB, free: 58.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007802/0.6863, allocations: 0.5025 MB / 0.5582 GB, free: 57.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.6863, allocations: 0 / 0.5582 GB, free: 57.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.162e-05/0.6864, allocations: 12 kB / 0.5582 GB, free: 57.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.6864, allocations: 8 kB / 0.5582 GB, free: 57.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008915/0.6873, allocations: 0.5059 MB / 0.5587 GB, free: 57.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.6895, allocations: 1.673 MB / 0.5603 GB, free: 55.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000767/0.6903, allocations: 409.9 kB / 0.5607 GB, free: 54.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01275/0.703, allocations: 18.11 MB / 0.5784 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005559/0.7036, allocations: 275.8 kB / 0.5787 GB, free: 33.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 2.023e-06/0.7036, allocations: 4 kB / 0.5787 GB, free: 33.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001702/0.7053, allocations: 0.885 MB / 0.5796 GB, free: 33.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.7054, allocations: 166.2 kB / 0.5797 GB, free: 32.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.7066, allocations: 1.227 MB / 0.5809 GB, free: 31.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/0.7066, allocations: 33.7 kB / 0.5809 GB, free: 31.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004181/0.7071, allocations: 0.7227 MB / 0.5816 GB, free: 30.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.845e-05/0.7071, allocations: 94.75 kB / 0.5817 GB, free: 30.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.401e-05/0.7072, allocations: 8 kB / 0.5817 GB, free: 30.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.427e-05/0.7072, allocations: 329.9 kB / 0.5821 GB, free: 30.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003762/0.7076, allocations: 177 kB / 0.5822 GB, free: 30.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004418/0.7081, allocations: 403.7 kB / 0.5826 GB, free: 29.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004107/0.7085, allocations: 232.2 kB / 0.5828 GB, free: 29.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.7085, allocations: 4 kB / 0.5828 GB, free: 29.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001165/0.7097, allocations: 0.7827 MB / 0.5836 GB, free: 28.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.7097, allocations: 8 kB / 0.5836 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-05/0.7098, allocations: 44.06 kB / 0.5837 GB, free: 28.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000253/0.71, allocations: 132.8 kB / 0.5838 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/0.7104, allocations: 119.8 kB / 0.5839 GB, free: 28.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004413/0.7109, allocations: 0.685 MB / 0.5846 GB, free: 27.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005821/0.7114, allocations: 83.41 kB / 0.5846 GB, free: 27.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.821e-05/0.7115, allocations: 40.05 kB / 0.5847 GB, free: 27.59 MB / 378.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.0003807/0.7119, allocations: 280.1 kB / 0.5849 GB, free: 27.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.712, allocations: 185.8 kB / 0.5851 GB, free: 27.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/0.7138, allocations: 0.8049 MB / 0.5859 GB, free: 26.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.7138, allocations: 8 kB / 0.5859 GB, free: 26.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.7138, allocations: 0 / 0.5859 GB, free: 26.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.7138, allocations: 0 / 0.5859 GB, free: 26.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/0.7157, allocations: 1.386 MB / 0.5873 GB, free: 24.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.685e-05/0.7158, allocations: 35.98 kB / 0.5873 GB, free: 24.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.716, allocations: 63.95 kB / 0.5874 GB, free: 24.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000197/0.7162, allocations: 120.8 kB / 0.5875 GB, free: 24.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.7163, allocations: 19.98 kB / 0.5875 GB, free: 24.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003835/0.7166, allocations: 0.6701 MB / 0.5882 GB, free: 23.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7167, allocations: 4.031 kB / 0.5882 GB, free: 23.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.7177, allocations: 0.7789 MB / 0.5889 GB, free: 23.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003919/0.7181, allocations: 290.6 kB / 0.5892 GB, free: 22.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.7183, allocations: 12 kB / 0.5892 GB, free: 22.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/0.7187, allocations: 39.95 kB / 0.5892 GB, free: 22.72 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.7188, allocations: 39.95 kB / 0.5893 GB, free: 22.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.684e-05/0.7188, allocations: 16 kB / 0.5893 GB, free: 22.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008965/0.7197, allocations: 0.9613 MB / 0.5902 GB, free: 21.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7197, allocations: 0 / 0.5902 GB, free: 21.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009202/0.7207, allocations: 367.6 kB / 0.5906 GB, free: 21.33 MB / 378.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.001951/0.7226, allocations: 1.985 MB / 0.5925 GB, free: 19.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.7237, allocations: 0.5435 MB / 0.5931 GB, free: 18.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.7238, allocations: 0 / 0.5931 GB, free: 18.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005343/0.7243, allocations: 315.4 kB / 0.5934 GB, free: 18.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007531/0.7251, allocations: 235 kB / 0.5936 GB, free: 18.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.7364, allocations: 12.39 MB / 0.6057 GB, free: 5.094 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.7368, allocations: 1.179 MB / 0.6068 GB, free: 3.883 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005824/0.7374, allocations: 178.5 kB / 0.607 GB, free: 3.703 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004413/0.7379, allocations: 0.5578 MB / 0.6075 GB, free: 3.145 MB / 378.7 MB Notification: Performance of SimCode: time 8.62e-07/0.7379, allocations: 0 / 0.6075 GB, free: 3.145 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05463/0.7925, allocations: 33.2 MB / 0.64 GB, free: 1.922 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.7928, allocations: 198.8 kB / 0.6402 GB, free: 1.684 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.836/3.629, allocations: 0 / 0.6402 GB, free: 1.684 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat