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.0009829/0.0009829, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 221.5 MB / 230.3 MB, free: 7.559 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.000901/0.000901, allocations: 105.2 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.869e-05/1.883e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09166/0.0917, allocations: 50.41 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3078/0.3996, allocations: 81.06 MB / 468.6 MB, free: 13.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.3998, allocations: 75.95 kB / 468.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01823/0.418, allocations: 6.528 MB / 475.2 MB, free: 7.012 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.4181, allocations: 4 kB / 475.2 MB, free: 7.008 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.095e-05/0.4181, allocations: 8 kB / 475.2 MB, free: 7 MB / 346.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.001372/0.4195, allocations: 0.7001 MB / 475.9 MB, free: 6.258 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.4196, allocations: 12.02 kB / 475.9 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.4197, allocations: 51.44 kB / 476 MB, free: 6.195 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005126/0.4202, allocations: 326.2 kB / 476.3 MB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.4202, allocations: 12 kB / 476.3 MB, free: 5.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.808e-05/0.4203, allocations: 20 kB / 476.3 MB, free: 5.805 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005904/0.4209, allocations: 341.4 kB / 476.7 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005909/0.4215, allocations: 364 kB / 477 MB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.4215, allocations: 0 / 477 MB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.4216, allocations: 0 / 477 MB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.4216, allocations: 12 kB / 477 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.424, allocations: 1.485 MB / 478.5 MB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000749/0.4248, allocations: 355.5 kB / 478.9 MB, free: 3.141 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/0.4251, allocations: 175.9 kB / 479 MB, free: 2.965 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.364e-05/0.4251, allocations: 12.33 kB / 479.1 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.4252, allocations: 34.89 kB / 479.1 MB, free: 2.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=40): time 1.933e-06/0.4252, allocations: 0 / 479.1 MB, free: 2.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.001284/0.4265, allocations: 0.4929 MB / 479.6 MB, free: 2.406 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.041e-05/0.4265, allocations: 158.2 kB / 479.7 MB, free: 2.215 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.4268, allocations: 210.4 kB / 479.9 MB, free: 2 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.4268, allocations: 29.7 kB / 480 MB, free: 1.965 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.4269, allocations: 208.3 kB / 480.2 MB, free: 1.758 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.942e-05/0.427, allocations: 134 kB / 480.3 MB, free: 1.625 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-05/0.4271, allocations: 0 / 480.3 MB, free: 1.625 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4272, allocations: 346.8 kB / 480.6 MB, free: 1.277 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.4274, allocations: 112.9 kB / 480.8 MB, free: 1.164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.4276, allocations: 209.8 kB / 481 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.4279, allocations: 139.8 kB / 481.1 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.4279, allocations: 4 kB / 481.1 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001565/0.4295, allocations: 0.6196 MB / 481.7 MB, free: 152 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.4295, allocations: 9.547 kB / 481.7 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.4296, allocations: 4 kB / 481.7 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009486/0.4305, allocations: 253.6 kB / 482 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003707/0.4309, allocations: 87.88 kB / 482.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.432, allocations: 1.34 MB / 483.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005227/0.4326, allocations: 79.75 kB / 483.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.568e-05/0.4326, allocations: 16 kB / 483.5 MB, free: 14.31 MB / 362.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 () * 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.0001377/0.4328, allocations: 108.9 kB / 483.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001255/0.434, allocations: 498.5 kB / 484.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.819e-05/0.4341, allocations: 35.62 kB / 484.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001594/0.4357, allocations: 0.6032 MB / 484.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.647e-06/0.4358, allocations: 8 kB / 484.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4358, allocations: 0 / 484.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.4358, allocations: 3.984 kB / 484.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000545/0.4363, allocations: 398.1 kB / 485.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4364, allocations: 0 / 485.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/0.4367, allocations: 60 kB / 485.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007898/0.4375, allocations: 261.5 kB / 485.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.253e-05/0.4375, allocations: 7.984 kB / 485.5 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.4386, allocations: 1.348 MB / 486.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.4387, allocations: 4.031 kB / 486.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/0.4404, allocations: 0.8399 MB / 487.6 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.4406, allocations: 112.7 kB / 487.8 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.765e-05/0.4406, allocations: 4 kB / 487.8 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003894/0.441, allocations: 59.94 kB / 487.8 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.225e-05/0.4411, allocations: 19.97 kB / 487.8 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.084e-05/0.4411, allocations: 8 kB / 487.8 MB, free: 9.797 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001581/0.4413, allocations: 169.9 kB / 488 MB, free: 9.633 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4413, allocations: 0 / 488 MB, free: 9.633 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004544/0.4418, allocations: 107.9 kB / 488.1 MB, free: 9.527 MB / 362.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 () * 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.002216/0.444, allocations: 1.385 MB / 489.5 MB, free: 8.109 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000782/0.4448, allocations: 343.5 kB / 489.8 MB, free: 7.773 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4448, allocations: 0 / 489.8 MB, free: 7.773 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000369/0.4452, allocations: 204.3 kB / 490 MB, free: 7.574 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.4455, allocations: 28.48 kB / 490.1 MB, free: 7.547 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/0.447, allocations: 0.6445 MB / 490.7 MB, free: 6.859 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.4474, allocations: 0.8034 MB / 491.5 MB, free: 6.027 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001649/0.4476, allocations: 35.28 kB / 491.5 MB, free: 5.992 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.4477, allocations: 123.4 kB / 491.7 MB, free: 5.871 MB / 362.7 MB Notification: Performance of SimCode: time 1.874e-06/0.4478, allocations: 0 / 491.7 MB, free: 5.871 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02883/0.4766, allocations: 7.624 MB / 499.3 MB, free: 14.28 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001951/0.4768, allocations: 147.1 kB / 499.4 MB, free: 14.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.198/2.675, allocations: 4 kB / 499.4 MB, free: 14.08 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