Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_cpp_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.001504/0.001504, allocations: 181.1 kB / 13.66 MB, free: 1.664 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.995/1.995, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00111/0.00111, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.988e-05/2.998e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09507/0.09512, allocations: 47.57 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4485/0.5437, allocations: 101.9 MB / 471.1 MB, free: 7.539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.544, allocations: 75.83 kB / 471.1 MB, free: 7.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5839/1.128, allocations: 89.47 MB / 0.5475 GB, free: 99.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.128, allocations: 0 / 0.5475 GB, free: 99.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.749e-05/1.128, allocations: 21.5 kB / 0.5475 GB, free: 99.29 MB / 410.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.005428/1.133, allocations: 1.618 MB / 0.5491 GB, free: 98.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/1.134, allocations: 9.656 kB / 0.5491 GB, free: 98.38 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/1.134, allocations: 73.27 kB / 0.5492 GB, free: 98.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005063/1.134, allocations: 193.7 kB / 0.5493 GB, free: 98.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003288/1.138, allocations: 1.209 MB / 0.5505 GB, free: 97.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/1.138, allocations: 25.47 kB / 0.5505 GB, free: 97.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/1.138, allocations: 28.84 kB / 0.5506 GB, free: 97.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/1.139, allocations: 443.5 kB / 0.551 GB, free: 97.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/1.139, allocations: 5.156 kB / 0.551 GB, free: 97.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.844e-05/1.139, allocations: 13.66 kB / 0.551 GB, free: 97.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/1.139, allocations: 14.09 kB / 0.551 GB, free: 97.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009297/1.14, allocations: 376.8 kB / 0.5514 GB, free: 97.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004666/1.145, allocations: 1.655 MB / 0.553 GB, free: 97.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006094/1.145, allocations: 284.7 kB / 0.5533 GB, free: 97.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006713/1.146, allocations: 358.4 kB / 0.5536 GB, free: 97.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02297/1.169, allocations: 18.19 MB / 0.5714 GB, free: 83.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004915/1.169, allocations: 206.4 kB / 0.5716 GB, free: 83.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 3.857e-06/1.169, allocations: 0 / 0.5716 GB, free: 83.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.001314/1.171, allocations: 499.4 kB / 0.572 GB, free: 83.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.285e-05/1.171, allocations: 176.8 kB / 0.5722 GB, free: 83.58 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/1.173, allocations: 1.207 MB / 0.5734 GB, free: 83.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.943e-05/1.173, allocations: 28.95 kB / 0.5734 GB, free: 83.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006173/1.174, allocations: 0.6372 MB / 0.574 GB, free: 82.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/1.174, allocations: 89.84 kB / 0.5741 GB, free: 82.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/1.174, allocations: 11.94 kB / 0.5741 GB, free: 82.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.562e-05/1.174, allocations: 330.3 kB / 0.5745 GB, free: 82.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/1.174, allocations: 107.8 kB / 0.5746 GB, free: 82.37 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004064/1.175, allocations: 333.8 kB / 0.5749 GB, free: 82.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/1.175, allocations: 156.5 kB / 0.575 GB, free: 81.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/1.175, allocations: 3.719 kB / 0.575 GB, free: 81.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001158/1.176, allocations: 0.5005 MB / 0.5755 GB, free: 81.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/1.176, allocations: 9.031 kB / 0.5755 GB, free: 81.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.458e-05/1.176, allocations: 42.48 kB / 0.5756 GB, free: 81.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004405/1.177, allocations: 141.8 kB / 0.5757 GB, free: 81.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007474/1.178, allocations: 123 kB / 0.5758 GB, free: 81.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006952/1.178, allocations: 0.6756 MB / 0.5765 GB, free: 81.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/1.18, allocations: 93.22 kB / 0.5766 GB, free: 81.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.342e-05/1.18, allocations: 35.12 kB / 0.5766 GB, free: 81.13 MB / 410.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.000173/1.18, allocations: 136.5 kB / 0.5767 GB, free: 81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002164/1.18, allocations: 186.8 kB / 0.5769 GB, free: 80.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002525/1.183, allocations: 0.6739 MB / 0.5776 GB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.497e-06/1.183, allocations: 3.062 kB / 0.5776 GB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/1.183, allocations: 0 / 0.5776 GB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/1.183, allocations: 0 / 0.5776 GB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00277/1.186, allocations: 1.246 MB / 0.5788 GB, free: 79.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-05/1.186, allocations: 41.14 kB / 0.5788 GB, free: 79.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/1.186, allocations: 55.52 kB / 0.5789 GB, free: 79.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003479/1.187, allocations: 128.5 kB / 0.579 GB, free: 79.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.592e-05/1.187, allocations: 21.7 kB / 0.579 GB, free: 79.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006692/1.187, allocations: 0.665 MB / 0.5797 GB, free: 79.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.187, allocations: 6.969 kB / 0.5797 GB, free: 79.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/1.189, allocations: 0.6486 MB / 0.5803 GB, free: 78.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006741/1.189, allocations: 288.2 kB / 0.5806 GB, free: 78.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002828/1.19, allocations: 7.969 kB / 0.5806 GB, free: 78.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008868/1.19, allocations: 40.67 kB / 0.5806 GB, free: 78.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/1.191, allocations: 39.48 kB / 0.5807 GB, free: 78.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-05/1.191, allocations: 21.36 kB / 0.5807 GB, free: 78.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001667/1.192, allocations: 0.9373 MB / 0.5816 GB, free: 78.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.192, allocations: 0 / 0.5816 GB, free: 78.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001675/1.194, allocations: 369.1 kB / 0.582 GB, free: 78.27 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) * 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.002624/1.197, allocations: 1.848 MB / 0.5838 GB, free: 77.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00119/1.198, allocations: 419.1 kB / 0.5842 GB, free: 76.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.198, allocations: 0 / 0.5842 GB, free: 76.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005779/1.199, allocations: 242.1 kB / 0.5844 GB, free: 76.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001588/1.2, allocations: 244.9 kB / 0.5846 GB, free: 76.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005456/1.206, allocations: 1.845 MB / 0.5864 GB, free: 75.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006318/1.206, allocations: 1.186 MB / 0.5876 GB, free: 75.22 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008452/1.207, allocations: 0.5596 MB / 0.5881 GB, free: 74.78 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/1.207, allocations: 0 / 0.5881 GB, free: 74.78 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.07/4.278, allocations: 29.96 MB / 0.6174 GB, free: 57.61 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat