Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.087/2.087, allocations: 390.4 MB / 397.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 189.8 kB / 490.8 MB, free: 1.965 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 221.3 MB / 0.7863 GB, free: 13.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001095, allocations: 87.55 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7134/0.7146, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/1.015, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 8.181/9.197, allocations: 4.188 GB / 5.4 GB, free: 351.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/9.197, allocations: 87.39 kB / 5.4 GB, free: 351 MB / 1.151 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.06393/9.261, allocations: 36.31 MB / 5.436 GB, free: 314.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/9.261, allocations: 8 kB / 5.436 GB, free: 314.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002043/9.261, allocations: 15.89 kB / 5.436 GB, free: 314.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/9.261, allocations: 163 kB / 5.436 GB, free: 314 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/9.261, allocations: 4 kB / 5.436 GB, free: 314 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.487e-05/9.261, allocations: 4 kB / 5.436 GB, free: 314 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.21e-05/9.261, allocations: 15.98 kB / 5.436 GB, free: 314 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.667e-05/9.262, allocations: 41.67 kB / 5.436 GB, free: 313.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/9.262, allocations: 3.906 kB / 5.436 GB, free: 313.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/9.262, allocations: 8 kB / 5.436 GB, free: 313.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/9.262, allocations: 0 / 5.436 GB, free: 313.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001409/9.262, allocations: 134.2 kB / 5.436 GB, free: 313.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 6.391e-05/9.262, allocations: 45.64 kB / 5.436 GB, free: 313.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.775e-05/9.262, allocations: 8.859 kB / 5.436 GB, free: 313.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/9.262, allocations: 4 kB / 5.436 GB, free: 313.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/9.262, allocations: 34.56 kB / 5.436 GB, free: 313.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 1.733e-06/9.262, allocations: 4 kB / 5.436 GB, free: 313.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=11): time 0.0006528/9.263, allocations: 342.2 kB / 5.436 GB, free: 313.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.722e-05/9.263, allocations: 51.41 kB / 5.436 GB, free: 313.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.316e-05/9.263, allocations: 89 kB / 5.437 GB, free: 313.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/9.263, allocations: 29.7 kB / 5.437 GB, free: 313.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 1.598e-05/9.263, allocations: 80.14 kB / 5.437 GB, free: 313 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/9.263, allocations: 43.48 kB / 5.437 GB, free: 312.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-06/9.263, allocations: 0 / 5.437 GB, free: 312.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.072e-05/9.263, allocations: 314.8 kB / 5.437 GB, free: 312.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.549e-05/9.263, allocations: 16 kB / 5.437 GB, free: 312.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.634e-05/9.263, allocations: 37.7 kB / 5.437 GB, free: 312.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.535e-05/9.263, allocations: 16.31 kB / 5.437 GB, free: 312.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-07/9.263, allocations: 0 / 5.437 GB, free: 312.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001054/9.263, allocations: 89.5 kB / 5.437 GB, free: 312.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/9.263, allocations: 8 kB / 5.437 GB, free: 312.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/9.263, allocations: 0 / 5.437 GB, free: 312.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/9.263, allocations: 0 / 5.437 GB, free: 312.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/9.263, allocations: 24 kB / 5.437 GB, free: 312.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/9.263, allocations: 0 / 5.437 GB, free: 312.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.316e-05/9.263, allocations: 7.922 kB / 5.437 GB, free: 312.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/9.263, allocations: 4 kB / 5.437 GB, free: 312.4 MB / 1.151 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 5.687e-05/9.263, allocations: 104.9 kB / 5.437 GB, free: 312.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.378e-05/9.263, allocations: 4 kB / 5.437 GB, free: 312.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.804e-05/9.263, allocations: 11.91 kB / 5.437 GB, free: 312.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/9.263, allocations: 7.984 kB / 5.437 GB, free: 312.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/9.263, allocations: 0 / 5.437 GB, free: 312.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/9.263, allocations: 3.906 kB / 5.437 GB, free: 312.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.391e-05/9.263, allocations: 150.1 kB / 5.437 GB, free: 312.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/9.263, allocations: 0 / 5.437 GB, free: 312.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/9.264, allocations: 20 kB / 5.438 GB, free: 312.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/9.264, allocations: 4 kB / 5.438 GB, free: 312.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/9.264, allocations: 0 / 5.438 GB, free: 312.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/9.264, allocations: 7.938 kB / 5.438 GB, free: 312 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/9.264, allocations: 3.984 kB / 5.438 GB, free: 312 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001447/9.264, allocations: 121.7 kB / 5.438 GB, free: 311.9 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002438/9.264, allocations: 0.5326 MB / 5.438 GB, free: 311.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-05/9.264, allocations: 85.09 kB / 5.438 GB, free: 311.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/9.264, allocations: 0 / 5.438 GB, free: 311.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.043e-05/9.264, allocations: 4 kB / 5.438 GB, free: 311.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.665e-05/9.264, allocations: 11.89 kB / 5.438 GB, free: 311.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/9.264, allocations: 7.938 kB / 5.438 GB, free: 311.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.532e-05/9.264, allocations: 75.28 kB / 5.438 GB, free: 311.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0008699/9.265, allocations: 91.98 kB / 5.438 GB, free: 311.1 MB / 1.151 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.0007041/9.266, allocations: 0.6691 MB / 5.439 GB, free: 310.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001102/9.266, allocations: 48.09 kB / 5.439 GB, free: 310.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/9.266, allocations: 0 / 5.439 GB, free: 310.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 2.862e-05/9.266, allocations: 31.98 kB / 5.439 GB, free: 310.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/9.266, allocations: 4.938 kB / 5.439 GB, free: 310.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004395/9.267, allocations: 273.8 kB / 5.439 GB, free: 310 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001947/9.267, allocations: 0.7075 MB / 5.44 GB, free: 309.3 MB / 1.151 GB Notification: Performance of SimCode: time 2.51e-07/9.267, allocations: 0 / 5.44 GB, free: 309.3 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat does not exist to compare? outputFormat=mat