Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001144/0.001144, allocations: 204.2 kB / 8.537 MB, free: 488 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.127/1.127, allocations: 225.5 MB / 234.4 MB, free: 9.488 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009243/0.0009243, allocations: 87.39 kB / 286.3 MB, free: 5.883 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09134/0.09229, allocations: 56.89 MB / 343.2 MB, free: 12.97 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1947/0.287, allocations: 51.46 MB / 394.7 MB, free: 47.69 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08088/0.3679, allocations: 81.81 MB / 476.5 MB, free: 10.15 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001746/0.3681, allocations: 75.95 kB / 476.6 MB, free: 10.08 MB / 354.8 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.01904/0.3872, allocations: 7.142 MB / 483.7 MB, free: 2.953 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.3872, allocations: 11.94 kB / 483.7 MB, free: 2.941 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001936/0.3874, allocations: 59.44 kB / 483.8 MB, free: 2.883 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004847/0.3879, allocations: 330.1 kB / 484.1 MB, free: 2.523 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.388, allocations: 12 kB / 484.1 MB, free: 2.512 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.301e-05/0.388, allocations: 20 kB / 484.1 MB, free: 2.492 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006136/0.3886, allocations: 333.5 kB / 484.5 MB, free: 2.168 MB / 354.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006219/0.3893, allocations: 374.3 kB / 484.8 MB, free: 1.781 MB / 354.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.3893, allocations: 4 kB / 484.8 MB, free: 1.777 MB / 354.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.713e-05/0.3893, allocations: 0 / 484.8 MB, free: 1.777 MB / 354.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.3894, allocations: 8 kB / 484.8 MB, free: 1.77 MB / 354.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00247/0.3918, allocations: 1.518 MB / 486.4 MB, free: 152 kB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003614/0.3922, allocations: 221 kB / 486.6 MB, free: 15.93 MB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/0.3925, allocations: 180.1 kB / 486.8 MB, free: 15.75 MB / 370.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.297e-05/0.3925, allocations: 8.312 kB / 486.8 MB, free: 15.74 MB / 370.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.3926, allocations: 41.58 kB / 486.8 MB, free: 15.7 MB / 370.8 MB Notification: Performance of pre-optimization done (n=40): time 1.403e-06/0.3926, allocations: 0 / 486.8 MB, free: 15.7 MB / 370.8 MB Notification: Performance of matching and sorting (n=40): time 0.001406/0.394, allocations: 0.4931 MB / 487.3 MB, free: 15.19 MB / 370.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/0.3941, allocations: 162.2 kB / 487.5 MB, free: 15 MB / 370.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.3943, allocations: 215.4 kB / 487.7 MB, free: 14.78 MB / 370.8 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.3943, allocations: 25.7 kB / 487.7 MB, free: 14.75 MB / 370.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.771e-05/0.3944, allocations: 184.3 kB / 487.9 MB, free: 14.56 MB / 370.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.78e-05/0.3945, allocations: 134 kB / 488 MB, free: 14.43 MB / 370.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.049e-05/0.3946, allocations: 0 / 488 MB, free: 14.43 MB / 370.8 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3947, allocations: 346.8 kB / 488.3 MB, free: 14.08 MB / 370.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002017/0.3949, allocations: 112.9 kB / 488.4 MB, free: 13.97 MB / 370.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002553/0.3951, allocations: 205.8 kB / 488.6 MB, free: 13.74 MB / 370.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002885/0.3954, allocations: 139.5 kB / 488.8 MB, free: 13.61 MB / 370.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3954, allocations: 0 / 488.8 MB, free: 13.61 MB / 370.8 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001702/0.3972, allocations: 0.6236 MB / 489.4 MB, free: 12.97 MB / 370.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.3972, allocations: 12.03 kB / 489.4 MB, free: 12.96 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.3972, allocations: 0 / 489.4 MB, free: 12.96 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008691/0.3981, allocations: 255.3 kB / 489.7 MB, free: 12.7 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003899/0.3985, allocations: 99.78 kB / 489.8 MB, free: 12.61 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.3996, allocations: 1.353 MB / 491.1 MB, free: 11.2 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004977/0.4001, allocations: 87.75 kB / 491.2 MB, free: 11.12 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/0.4002, allocations: 12 kB / 491.2 MB, free: 11.11 MB / 370.8 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.0001218/0.4003, allocations: 120.8 kB / 491.3 MB, free: 10.98 MB / 370.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.946e-05/0.4004, allocations: 31.62 kB / 491.4 MB, free: 10.95 MB / 370.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001688/0.4021, allocations: 0.6062 MB / 492 MB, free: 10.32 MB / 370.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.4021, allocations: 8 kB / 492 MB, free: 10.32 MB / 370.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.4021, allocations: 0 / 492 MB, free: 10.32 MB / 370.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.4021, allocations: 0 / 492 MB, free: 10.32 MB / 370.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004813/0.4026, allocations: 397.6 kB / 492.4 MB, free: 9.891 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.4026, allocations: 3.906 kB / 492.4 MB, free: 9.887 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003413/0.403, allocations: 78.88 kB / 492.4 MB, free: 9.812 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000823/0.4038, allocations: 267.1 kB / 492.7 MB, free: 9.547 MB / 370.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.4038, allocations: 0 / 492.7 MB, free: 9.547 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.4049, allocations: 1.365 MB / 494.1 MB, free: 8.133 MB / 370.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4049, allocations: 0 / 494.1 MB, free: 8.133 MB / 370.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001824/0.4068, allocations: 0.8595 MB / 494.9 MB, free: 7.25 MB / 370.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002189/0.409, allocations: 1.408 MB / 496.3 MB, free: 5.816 MB / 370.8 MB Notification: Performance of postOpt removeConstants (simulation): time 7.695e-05/0.4091, allocations: 112.6 kB / 496.5 MB, free: 5.688 MB / 370.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.161e-05/0.4091, allocations: 0 / 496.5 MB, free: 5.688 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004298/0.4096, allocations: 64 kB / 496.5 MB, free: 5.625 MB / 370.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.639e-05/0.4096, allocations: 24.66 kB / 496.5 MB, free: 5.602 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.4097, allocations: 8 kB / 496.5 MB, free: 5.594 MB / 370.8 MB Notification: Performance of sort global known variables: time 0.0001384/0.4098, allocations: 167.1 kB / 496.7 MB, free: 5.434 MB / 370.8 MB Notification: Performance of remove unused functions: time 0.0009513/0.4108, allocations: 103.7 kB / 496.8 MB, free: 5.332 MB / 370.8 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.0001687/0.4109, allocations: 112.3 kB / 496.9 MB, free: 5.215 MB / 370.8 MB Notification: Performance of simCode: created initialization part: time 0.0006793/0.4116, allocations: 343.5 kB / 497.3 MB, free: 4.879 MB / 370.8 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4117, allocations: 0 / 497.3 MB, free: 4.879 MB / 370.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003613/0.412, allocations: 196 kB / 497.4 MB, free: 4.688 MB / 370.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.4123, allocations: 29.3 kB / 497.5 MB, free: 4.66 MB / 370.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.4136, allocations: 0.5935 MB / 498.1 MB, free: 4.047 MB / 370.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004222/0.414, allocations: 0.838 MB / 498.9 MB, free: 3.18 MB / 370.8 MB Notification: Performance of SimCode: time 2.61e-07/0.414, allocations: 0 / 498.9 MB, free: 3.18 MB / 370.8 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingMOSInverter_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat does not exist to compare? outputFormat=mat