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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 181 kB / 8.132 MB, free: 2.219 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.102/1.102, allocations: 221.4 MB / 229.9 MB, free: 3.371 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.0009225/0.0009225, allocations: 105.2 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.093/0.09395, allocations: 55.81 MB / 336.6 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.3332, allocations: 50.4 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08534/0.4186, allocations: 81 MB / 468 MB, free: 5.785 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/0.4189, allocations: 67.95 kB / 468.1 MB, free: 5.719 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.01868/0.4375, allocations: 7.048 MB / 475.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.4376, allocations: 12 kB / 475.1 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.4377, allocations: 47.94 kB / 475.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000529/0.4382, allocations: 330.1 kB / 475.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.4383, allocations: 12 kB / 475.5 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.176e-05/0.4384, allocations: 24 kB / 475.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006176/0.439, allocations: 334 kB / 475.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005806/0.4396, allocations: 371.9 kB / 476.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.4396, allocations: 0 / 476.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.589e-05/0.4396, allocations: 0 / 476.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.4397, allocations: 8 kB / 476.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002511/0.4422, allocations: 1.502 MB / 477.7 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003497/0.4425, allocations: 218.5 kB / 477.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002854/0.4428, allocations: 178.1 kB / 478.1 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.977e-05/0.4429, allocations: 12.31 kB / 478.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.4429, allocations: 38.89 kB / 478.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.633e-06/0.4429, allocations: 0 / 478.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001367/0.4443, allocations: 0.493 MB / 478.7 MB, free: 10.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.292e-05/0.4444, allocations: 162.2 kB / 478.8 MB, free: 10.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.4446, allocations: 211.4 kB / 479 MB, free: 10.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.4446, allocations: 29.7 kB / 479.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.196e-05/0.4447, allocations: 184.2 kB / 479.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.181e-05/0.4448, allocations: 134 kB / 479.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/0.4449, allocations: 4 kB / 479.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.445, allocations: 346.8 kB / 479.7 MB, free: 9.781 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/0.4452, allocations: 112.9 kB / 479.8 MB, free: 9.668 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.4455, allocations: 209.7 kB / 480 MB, free: 9.426 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000296/0.4458, allocations: 139.4 kB / 480.2 MB, free: 9.293 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4458, allocations: 0 / 480.2 MB, free: 9.293 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001672/0.4475, allocations: 0.6237 MB / 480.8 MB, free: 8.652 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.4475, allocations: 8 kB / 480.8 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.4475, allocations: 0 / 480.8 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009416/0.4485, allocations: 258 kB / 481 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004077/0.4489, allocations: 95.88 kB / 481.1 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.4501, allocations: 1.351 MB / 482.5 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00054/0.4507, allocations: 83.69 kB / 482.6 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.847e-05/0.4508, allocations: 13.31 kB / 482.6 MB, free: 6.797 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.0001378/0.4509, allocations: 124.9 kB / 482.7 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.573e-05/0.451, allocations: 31.62 kB / 482.7 MB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/0.4527, allocations: 0.6108 MB / 483.3 MB, free: 6.008 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.4527, allocations: 4 kB / 483.3 MB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.403e-06/0.4527, allocations: 0.9375 kB / 483.3 MB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.4527, allocations: 7.938 kB / 483.4 MB, free: 5.996 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005136/0.4533, allocations: 397.6 kB / 483.7 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.4533, allocations: 0 / 483.7 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003305/0.4536, allocations: 75.88 kB / 483.8 MB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008336/0.4544, allocations: 261.6 kB / 484.1 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.111e-05/0.4545, allocations: 7.938 kB / 484.1 MB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/0.4556, allocations: 1.369 MB / 485.5 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.4556, allocations: 128 / 485.5 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001869/0.4575, allocations: 0.8636 MB / 486.3 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002185/0.4597, allocations: 1.403 MB / 487.7 MB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.357e-05/0.4598, allocations: 108.7 kB / 487.8 MB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.488e-05/0.4598, allocations: 7.969 kB / 487.8 MB, free: 1.359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.4603, allocations: 59.94 kB / 487.9 MB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.532e-05/0.4604, allocations: 23.97 kB / 487.9 MB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/0.4604, allocations: 8.109 kB / 487.9 MB, free: 1.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000138/0.4605, allocations: 171 kB / 488.1 MB, free: 1.102 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009506/0.4615, allocations: 107.7 kB / 488.2 MB, free: 0.9961 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.0001638/0.4617, allocations: 107.2 kB / 488.3 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006863/0.4624, allocations: 348.1 kB / 488.6 MB, free: 0.543 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.4624, allocations: 448 / 488.6 MB, free: 0.543 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.4627, allocations: 195.9 kB / 488.8 MB, free: 360 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.463, allocations: 27.56 kB / 488.9 MB, free: 336 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.4643, allocations: 0.5881 MB / 489.4 MB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004054/0.4648, allocations: 0.8419 MB / 490.3 MB, free: 14.85 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4648, allocations: 0 / 490.3 MB, free: 14.85 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