Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor",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 3.2.3+maint.om/package.mo): time 0.001543/0.001543, allocations: 176.1 kB / 8.476 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.044/1.044, allocations: 205.2 MB / 214.1 MB, free: 5.105 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008067/0.0008067, allocations: 83.34 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1475/0.1483, allocations: 52.97 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06159/0.2099, allocations: 47.57 MB / 362.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1924/0.4023, allocations: 76.41 MB / 439 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000153/0.4025, allocations: 66.45 kB / 439.1 MB, free: 10.7 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.006455/0.409, allocations: 2.829 MB / 441.9 MB, free: 10.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.409, allocations: 11.66 kB / 441.9 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.471e-05/0.4091, allocations: 16.55 kB / 442 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/0.4093, allocations: 208.9 kB / 442.2 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.913e-06/0.4093, allocations: 3.844 kB / 442.2 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.4093, allocations: 3.812 kB / 442.2 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000129/0.4094, allocations: 64.92 kB / 442.2 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.4096, allocations: 96.94 kB / 442.3 MB, free: 9.871 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.4096, allocations: 0 / 442.3 MB, free: 9.871 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.4096, allocations: 0.7656 kB / 442.3 MB, free: 9.871 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.4097, allocations: 3.844 kB / 442.3 MB, free: 9.871 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006445/0.4103, allocations: 0.571 MB / 442.9 MB, free: 9.449 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.4105, allocations: 72.64 kB / 443 MB, free: 9.426 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.126e-05/0.4106, allocations: 28.91 kB / 443 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.4106, allocations: 0 / 443 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.217e-05/0.4106, allocations: 34.38 kB / 443 MB, free: 9.375 MB / 314.7 MB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.4106, allocations: 2.078 kB / 443 MB, free: 9.375 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.000265/0.4109, allocations: 102.2 kB / 443.1 MB, free: 9.324 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.19e-05/0.4109, allocations: 55.31 kB / 443.2 MB, free: 9.262 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.245e-05/0.411, allocations: 136.6 kB / 443.3 MB, free: 9.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.196e-06/0.411, allocations: 25.7 kB / 443.4 MB, free: 9.129 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.306e-05/0.4111, allocations: 120 kB / 443.5 MB, free: 9.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.104e-05/0.4111, allocations: 16.66 kB / 443.5 MB, free: 9.012 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.4111, allocations: 0 / 443.5 MB, free: 9.012 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.751e-05/0.4111, allocations: 323.8 kB / 443.8 MB, free: 8.699 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.844e-05/0.4112, allocations: 14.53 kB / 443.8 MB, free: 8.699 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.511e-05/0.4112, allocations: 36.59 kB / 443.9 MB, free: 8.676 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.599e-05/0.4112, allocations: 24.75 kB / 443.9 MB, free: 8.672 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4112, allocations: 3.906 kB / 443.9 MB, free: 8.668 MB / 314.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001973/0.4114, allocations: 115 kB / 444 MB, free: 8.617 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.666e-06/0.4115, allocations: 8.375 kB / 444 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.4115, allocations: 0 / 444 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000153/0.4116, allocations: 38.59 kB / 444 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.456e-05/0.4117, allocations: 14.17 kB / 444.1 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000893/0.4126, allocations: 1.434 MB / 445.5 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.161e-05/0.4127, allocations: 16.8 kB / 445.5 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.4127, allocations: 0 / 445.5 MB, free: 7.297 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 4.97e-05/0.4127, allocations: 109.2 kB / 445.6 MB, free: 7.188 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.076e-05/0.4128, allocations: 8.609 kB / 445.6 MB, free: 7.184 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.907e-05/0.4128, allocations: 13.52 kB / 445.6 MB, free: 7.176 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.4128, allocations: 7.844 kB / 445.6 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.4128, allocations: 0.5156 kB / 445.6 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.4128, allocations: 3.906 kB / 445.6 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000156/0.413, allocations: 180.6 kB / 445.8 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.413, allocations: 0 / 445.8 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.936e-05/0.413, allocations: 5.906 kB / 445.8 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001105/0.4132, allocations: 39.66 kB / 445.9 MB, free: 7.004 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.4132, allocations: 4.656 kB / 445.9 MB, free: 7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007687/0.414, allocations: 1.428 MB / 447.3 MB, free: 5.707 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.414, allocations: 3.938 kB / 447.3 MB, free: 5.703 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000188/0.4142, allocations: 198.1 kB / 447.5 MB, free: 5.559 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002308/0.4144, allocations: 0.5695 MB / 448.1 MB, free: 21.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/0.4145, allocations: 82.28 kB / 448.1 MB, free: 20.94 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.4145, allocations: 4.672 kB / 448.1 MB, free: 20.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.4146, allocations: 5.281 kB / 448.2 MB, free: 20.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.863e-05/0.4146, allocations: 5.875 kB / 448.2 MB, free: 20.94 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.4146, allocations: 4 kB / 448.2 MB, free: 20.94 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.591e-05/0.4147, allocations: 112.5 kB / 448.3 MB, free: 20.86 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008615/0.4156, allocations: 34.81 kB / 448.3 MB, free: 20.85 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 9.831e-05/0.4157, allocations: 99.14 kB / 448.4 MB, free: 20.76 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002469/0.4159, allocations: 153.4 kB / 448.6 MB, free: 20.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.4159, allocations: 0 / 448.6 MB, free: 20.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.4161, allocations: 140.3 kB / 448.7 MB, free: 20.55 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001685/0.4163, allocations: 11.8 kB / 448.7 MB, free: 20.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003316/0.4166, allocations: 151.6 kB / 448.9 MB, free: 20.45 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003034/0.4169, allocations: 0.7228 MB / 449.6 MB, free: 19.75 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4169, allocations: 0 / 449.6 MB, free: 19.75 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat does not exist to compare? outputFormat=mat