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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 180.3 kB / 16.38 MB, free: 5.762 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.46/1.46, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 93.47 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003279/0.0003281, allocations: 8 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3029, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1136/0.4165, allocations: 81.8 MB / 483.4 MB, free: 14.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/0.4169, allocations: 72.97 kB / 483.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01972/0.4367, allocations: 6.598 MB / 490 MB, free: 7.926 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4367, allocations: 0 / 490 MB, free: 7.926 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.4e-05/0.4367, allocations: 8 kB / 490.1 MB, free: 7.918 MB / 362.7 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.001817/0.4386, allocations: 0.7408 MB / 490.8 MB, free: 7.129 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.674e-05/0.4386, allocations: 12.03 kB / 490.8 MB, free: 7.117 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000181/0.4388, allocations: 82.47 kB / 490.9 MB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.439, allocations: 47.44 kB / 490.9 MB, free: 6.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007167/0.4397, allocations: 314.4 kB / 491.2 MB, free: 6.637 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.4398, allocations: 29 kB / 491.3 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.499e-05/0.4399, allocations: 39.91 kB / 491.3 MB, free: 6.566 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.4411, allocations: 0.5317 MB / 491.8 MB, free: 6.016 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.4412, allocations: 0 / 491.8 MB, free: 6.016 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/0.4412, allocations: 16 kB / 491.9 MB, free: 6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.4412, allocations: 16 kB / 491.9 MB, free: 5.984 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.4427, allocations: 0.5582 MB / 492.4 MB, free: 5.422 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002917/0.4457, allocations: 1.561 MB / 494 MB, free: 3.746 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.4468, allocations: 471.6 kB / 494.5 MB, free: 3.277 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.4469, allocations: 8.328 kB / 494.5 MB, free: 3.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.4469, allocations: 38.89 kB / 494.5 MB, free: 3.223 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.705e-06/0.4469, allocations: 0 / 494.5 MB, free: 3.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.004726/0.4517, allocations: 1.44 MB / 495.9 MB, free: 1.734 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.4518, allocations: 158.2 kB / 496.1 MB, free: 1.543 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003634/0.4521, allocations: 242.2 kB / 496.3 MB, free: 1.305 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.4522, allocations: 33.7 kB / 496.4 MB, free: 1.266 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.4524, allocations: 216.2 kB / 496.6 MB, free: 1.047 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.4525, allocations: 138 kB / 496.7 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.5e-05/0.4526, allocations: 8 kB / 496.7 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.4527, allocations: 350.8 kB / 497.1 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005058/0.4532, allocations: 196.8 kB / 497.2 MB, free: 364 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005844/0.4538, allocations: 307.3 kB / 497.5 MB, free: 20 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005744/0.4544, allocations: 223.9 kB / 497.8 MB, free: 15.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.4544, allocations: 3.938 kB / 497.8 MB, free: 15.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002297/0.4567, allocations: 0.8342 MB / 498.6 MB, free: 14.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.4568, allocations: 6.656 kB / 498.6 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.4568, allocations: 4 kB / 498.6 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.4582, allocations: 333.4 kB / 498.9 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003672/0.4586, allocations: 87.88 kB / 499 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/0.4601, allocations: 1.366 MB / 0.4887 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005617/0.4607, allocations: 91.69 kB / 0.4888 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/0.4607, allocations: 16 kB / 0.4888 GB, free: 13 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002757/0.461, allocations: 153.8 kB / 0.4889 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.4611, allocations: 35.58 kB / 0.4889 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00225/0.4634, allocations: 0.8017 MB / 0.4897 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.4634, allocations: 4 kB / 0.4897 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.4634, allocations: 192 / 0.4897 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4634, allocations: 0 / 0.4897 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007094/0.4641, allocations: 472.9 kB / 0.4902 GB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.4642, allocations: 0 / 0.4902 GB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003315/0.4645, allocations: 75.83 kB / 0.4903 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001329/0.4658, allocations: 337.4 kB / 0.4906 GB, free: 11.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.846e-05/0.4659, allocations: 8 kB / 0.4906 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001436/0.4673, allocations: 1.386 MB / 0.4919 GB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4673, allocations: 3.938 kB / 0.4919 GB, free: 9.613 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002695/0.47, allocations: 1.094 MB / 0.493 GB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.4702, allocations: 104.7 kB / 0.4931 GB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.055e-05/0.4703, allocations: 12 kB / 0.4931 GB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004554/0.4708, allocations: 63.95 kB / 0.4932 GB, free: 8.301 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.697e-05/0.4709, allocations: 23.97 kB / 0.4932 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.4709, allocations: 16 kB / 0.4932 GB, free: 8.262 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002648/0.4712, allocations: 189.9 kB / 0.4934 GB, free: 8.074 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4712, allocations: 0 / 0.4934 GB, free: 8.074 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005097/0.4717, allocations: 119.7 kB / 0.4935 GB, free: 7.957 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.003107/0.4748, allocations: 1.658 MB / 0.4951 GB, free: 6.266 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.4762, allocations: 0.5037 MB / 0.4956 GB, free: 5.762 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4762, allocations: 8.312 kB / 0.4956 GB, free: 5.754 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006215/0.4768, allocations: 283.5 kB / 0.4959 GB, free: 5.477 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003618/0.4772, allocations: 51.66 kB / 0.496 GB, free: 5.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005875/0.4831, allocations: 3.774 MB / 0.4996 GB, free: 1.578 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.4835, allocations: 0.8111 MB / 0.5004 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.4837, allocations: 34.95 kB / 0.5005 GB, free: 0.707 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/0.4839, allocations: 123.4 kB / 0.5006 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of SimCode: time 6.82e-07/0.4839, allocations: 0 / 0.5006 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.258/0.7419, allocations: 8.358 MB / 0.5087 GB, free: 100.4 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.7421, allocations: 217 kB / 0.509 GB, free: 100.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.295/3.037, allocations: 0 / 0.509 GB, free: 100.2 MB / 378.7 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/linux/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