Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.518/1.518, allocations: 289.8 MB / 297 MB, free: 6.605 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001354/0.001354, allocations: 185.2 kB / 366.3 MB, free: 1.883 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.2 MB / 0.6256 GB, free: 5.73 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009478/0.0009479, allocations: 83.7 kB / 0.7395 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2979/0.2989, allocations: 122.4 MB / 0.8591 GB, free: 13.16 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5742/0.8731, allocations: 116.3 MB / 0.9726 GB, free: 68.79 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 8.317/9.191, allocations: 4.612 GB / 5.584 GB, free: 41.67 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/9.191, allocations: 84.44 kB / 5.584 GB, free: 41.59 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.06645/9.257, allocations: 36.19 MB / 5.62 GB, free: 4.938 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/9.257, allocations: 8 kB / 5.62 GB, free: 4.93 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002226/9.258, allocations: 15.89 kB / 5.62 GB, free: 4.914 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/9.258, allocations: 163 kB / 5.62 GB, free: 4.715 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.036e-05/9.258, allocations: 5.781 kB / 5.62 GB, free: 4.711 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.135e-05/9.258, allocations: 4 kB / 5.62 GB, free: 4.707 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.251e-05/9.258, allocations: 19.89 kB / 5.62 GB, free: 4.688 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.964e-05/9.258, allocations: 46.53 kB / 5.62 GB, free: 4.637 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/9.258, allocations: 0 / 5.62 GB, free: 4.637 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/9.258, allocations: 3.984 kB / 5.62 GB, free: 4.633 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/9.258, allocations: 4 kB / 5.62 GB, free: 4.629 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001847/9.258, allocations: 138.2 kB / 5.62 GB, free: 4.457 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 7.875e-05/9.258, allocations: 41.7 kB / 5.62 GB, free: 4.41 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.369e-05/9.259, allocations: 16.7 kB / 5.62 GB, free: 4.391 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/9.259, allocations: 7.938 kB / 5.62 GB, free: 4.383 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/9.259, allocations: 38.56 kB / 5.62 GB, free: 4.336 MB / 0.948 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/9.259, allocations: 0 / 5.62 GB, free: 4.336 MB / 0.948 GB Notification: Performance of matching and sorting (n=11): time 0.0007739/9.259, allocations: 331.4 kB / 5.62 GB, free: 3.961 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/9.259, allocations: 51.41 kB / 5.62 GB, free: 3.898 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.363e-05/9.259, allocations: 93 kB / 5.621 GB, free: 3.801 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/9.259, allocations: 29.7 kB / 5.621 GB, free: 3.766 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 2.143e-05/9.26, allocations: 84.08 kB / 5.621 GB, free: 3.68 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 4.039e-05/9.26, allocations: 39.39 kB / 5.621 GB, free: 3.641 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-06/9.26, allocations: 1.594 kB / 5.621 GB, free: 3.641 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.773e-05/9.26, allocations: 318.8 kB / 5.621 GB, free: 3.32 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.805e-05/9.26, allocations: 16 kB / 5.621 GB, free: 3.305 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.081e-05/9.26, allocations: 33.41 kB / 5.621 GB, free: 3.27 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.185e-05/9.26, allocations: 20.89 kB / 5.621 GB, free: 3.25 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/9.26, allocations: 4 kB / 5.621 GB, free: 3.246 MB / 0.948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001123/9.26, allocations: 79.17 kB / 5.621 GB, free: 3.164 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/9.26, allocations: 9.719 kB / 5.621 GB, free: 3.156 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/9.26, allocations: 0 / 5.621 GB, free: 3.156 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/9.26, allocations: 0 / 5.621 GB, free: 3.156 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/9.26, allocations: 31.92 kB / 5.621 GB, free: 3.125 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/9.26, allocations: 0 / 5.621 GB, free: 3.125 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.391e-05/9.26, allocations: 0 / 5.621 GB, free: 3.125 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/9.26, allocations: 4 kB / 5.621 GB, free: 3.121 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.978e-05/9.26, allocations: 116.8 kB / 5.621 GB, free: 3 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.638e-05/9.26, allocations: 4 kB / 5.621 GB, free: 2.996 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.986e-05/9.26, allocations: 7.906 kB / 5.621 GB, free: 2.992 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/9.26, allocations: 8.75 kB / 5.621 GB, free: 2.984 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/9.26, allocations: 0 / 5.621 GB, free: 2.984 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/9.26, allocations: 0 / 5.621 GB, free: 2.984 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/9.26, allocations: 154.2 kB / 5.621 GB, free: 2.797 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/9.261, allocations: 0 / 5.621 GB, free: 2.797 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/9.261, allocations: 19.98 kB / 5.621 GB, free: 2.777 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/9.261, allocations: 4 kB / 5.621 GB, free: 2.773 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/9.261, allocations: 4 kB / 5.621 GB, free: 2.77 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/9.261, allocations: 0 / 5.621 GB, free: 2.77 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/9.261, allocations: 0.9375 kB / 5.621 GB, free: 2.77 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001804/9.261, allocations: 128.8 kB / 5.622 GB, free: 2.625 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002911/9.261, allocations: 0.5248 MB / 5.622 GB, free: 2.078 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.04e-05/9.261, allocations: 81.11 kB / 5.622 GB, free: 1.98 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/9.261, allocations: 7.906 kB / 5.622 GB, free: 1.973 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.103e-05/9.261, allocations: 3.984 kB / 5.622 GB, free: 1.969 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.986e-05/9.261, allocations: 4.328 kB / 5.622 GB, free: 1.965 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/9.261, allocations: 4 kB / 5.622 GB, free: 1.961 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.602e-05/9.261, allocations: 83.22 kB / 5.622 GB, free: 1.879 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0009883/9.262, allocations: 83.98 kB / 5.622 GB, free: 1.797 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000847/9.263, allocations: 0.6783 MB / 5.623 GB, free: 1.121 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001248/9.263, allocations: 41.25 kB / 5.623 GB, free: 1.082 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/9.263, allocations: 0 / 5.623 GB, free: 1.082 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 3.296e-05/9.264, allocations: 31.94 kB / 5.623 GB, free: 1.051 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/9.264, allocations: 8 kB / 5.623 GB, free: 1.043 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005346/9.264, allocations: 273.9 kB / 5.623 GB, free: 0.7539 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/9.264, allocations: 0.7036 MB / 5.624 GB, free: 24 kB / 0.948 GB Notification: Performance of SimCode: time 2.41e-07/9.264, allocations: 0 / 5.624 GB, free: 24 kB / 0.948 GB (rm -f Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_8_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)