Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00186/0.001859, allocations: 114.7 kB / 16.51 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 199.9 kB / 17.43 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.566/1.566, allocations: 222.9 MB / 241.1 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 51.03 kB / 300.1 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1415, allocations: 49.44 MB / 349.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingMOSInverter): time 0.005516/0.1471, allocations: 3.169 MB / 352.7 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002162/0.1493, allocations: 0.7768 MB / 353.5 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004707/0.1498, allocations: 11.94 kB / 353.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00035/0.1502, allocations: 47.67 kB / 353.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004934/0.1507, allocations: 91.17 kB / 353.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006703/0.1514, allocations: 127.8 kB / 353.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008716/0.1523, allocations: 0.5191 MB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004183/0.1528, allocations: 152.7 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005455/0.1533, allocations: 195.3 kB / 354.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005194/0.1538, allocations: 247 kB / 354.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.152e-05/0.1539, allocations: 32 kB / 354.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001623/0.1541, allocations: 43.98 kB / 354.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.1543, allocations: 91.61 kB / 355 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003356/0.1546, allocations: 218.9 kB / 355.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006989/0.1553, allocations: 0.5258 MB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1553, allocations: 0 / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.1553, allocations: 0 / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.1554, allocations: 3.938 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001893/0.1573, allocations: 0.803 MB / 356.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.419e-05/0.1573, allocations: 12.03 kB / 356.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001041/0.1574, allocations: 74.72 kB / 356.6 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.1576, allocations: 44.47 kB / 356.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.158, allocations: 310.4 kB / 357 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.973e-05/0.1581, allocations: 37.36 kB / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.522e-05/0.1581, allocations: 36.38 kB / 357 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.1593, allocations: 0.5046 MB / 357.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.1593, allocations: 0 / 357.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.023e-05/0.1594, allocations: 16 kB / 357.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.1594, allocations: 12 kB / 357.6 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.1607, allocations: 0.4918 MB / 358.1 MB, free: 12.03 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002935/0.1636, allocations: 1.671 MB / 359.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.1648, allocations: 427.6 kB / 360.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005325/0.1653, allocations: 249.3 kB / 360.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.44e-05/0.1654, allocations: 4.328 kB / 360.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.1654, allocations: 38.89 kB / 360.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.195e-06/0.1654, allocations: 0 / 360.4 MB, free: 9.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.005449/0.1709, allocations: 1.368 MB / 361.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.171, allocations: 158.2 kB / 362 MB, free: 7.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003967/0.1715, allocations: 271 kB / 362.2 MB, free: 7.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.756e-05/0.1715, allocations: 33.7 kB / 362.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.1717, allocations: 216.2 kB / 362.5 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.1718, allocations: 134 kB / 362.6 MB, free: 7.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.172, allocations: 70.14 kB / 362.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1722, allocations: 346.8 kB / 363 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005156/0.1727, allocations: 184.7 kB / 363.2 MB, free: 6.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005838/0.1733, allocations: 282.5 kB / 363.5 MB, free: 6.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009923/0.1743, allocations: 426.5 kB / 363.9 MB, free: 5.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1743, allocations: 0 / 363.9 MB, free: 5.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001901/0.1762, allocations: 0.6819 MB / 364.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.78e-05/0.1762, allocations: 6.656 kB / 364.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.1763, allocations: 4 kB / 364.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001467/0.1777, allocations: 321.4 kB / 364.9 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003456/0.1781, allocations: 79.94 kB / 365 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/0.1797, allocations: 1.347 MB / 366.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005587/0.1803, allocations: 87.45 kB / 366.4 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-05/0.1803, allocations: 16 kB / 366.4 MB, free: 3.27 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003072/0.1806, allocations: 157.8 kB / 366.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.1808, allocations: 31.62 kB / 366.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002323/0.1831, allocations: 0.7314 MB / 367.3 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.1831, allocations: 8 kB / 367.3 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.1831, allocations: 0 / 367.3 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1831, allocations: 0 / 367.3 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008075/0.184, allocations: 472.9 kB / 367.8 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.184, allocations: 0 / 367.8 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003086/0.1843, allocations: 51.95 kB / 367.8 MB, free: 1.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001408/0.1857, allocations: 329.3 kB / 368.2 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.404e-05/0.1858, allocations: 15.98 kB / 368.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.1871, allocations: 1.351 MB / 369.5 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1872, allocations: 0 / 369.5 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1762/0.3634, allocations: 1.011 MB / 370.5 MB, free: 26.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.3636, allocations: 119.2 kB / 370.7 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.3636, allocations: 7.781 kB / 370.7 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003745/0.364, allocations: 47.92 kB / 370.7 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.903e-05/0.3641, allocations: 23.83 kB / 370.7 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.3641, allocations: 13.12 kB / 370.8 MB, free: 26.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002428/0.3644, allocations: 195.8 kB / 370.9 MB, free: 26.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3644, allocations: 0 / 370.9 MB, free: 26.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004586/0.3649, allocations: 107.8 kB / 371.1 MB, free: 26.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,10), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003105/0.368, allocations: 1.579 MB / 372.6 MB, free: 25.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001398/0.3694, allocations: 486.4 kB / 373.1 MB, free: 25.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3694, allocations: 2.5 kB / 373.1 MB, free: 25.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005898/0.37, allocations: 252.1 kB / 373.4 MB, free: 25.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005383/0.3705, allocations: 52.42 kB / 373.4 MB, free: 25.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01/0.3806, allocations: 4.228 MB / 377.6 MB, free: 22.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005971/0.3813, allocations: 0.7936 MB / 378.4 MB, free: 22.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002878/0.3816, allocations: 34.28 kB / 378.5 MB, free: 22.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.3818, allocations: 118.7 kB / 378.6 MB, free: 21.95 MB / 302.1 MB Notification: Performance of SimCode: time 1.843e-06/0.3818, allocations: 5.047 kB / 378.6 MB, free: 21.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06249/0.4443, allocations: 8.654 MB / 387.2 MB, free: 19.21 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004237/0.4448, allocations: 253.7 kB / 387.5 MB, free: 18.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.248/2.693, allocations: 0 / 387.5 MB, free: 18.95 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat does not exist to compare? outputFormat=mat