Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Media_Examples_WaterDerivativeCheck",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 7.0.3-maint.7.0.x/package.mo): time 1.234/1.234, allocations: 249.4 MB / 256.7 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 192.5 kB / 316 MB, free: 3.594 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.218/1.218, allocations: 205.1 MB / 0.5667 GB, free: 15.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008207/0.0008207, allocations: 81.66 kB / 0.671 GB, free: 4.836 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3795/0.3803, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.5821, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7265/1.309, allocations: 359.7 MB / 1.236 GB, free: 11.01 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/1.309, allocations: 69.09 kB / 1.236 GB, free: 10.98 MB / 0.8542 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.02732/1.336, allocations: 12.73 MB / 1.248 GB, free: 1.051 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/1.336, allocations: 12 kB / 1.248 GB, free: 1.039 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/1.336, allocations: 8 kB / 1.248 GB, free: 1.031 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/1.337, allocations: 166.9 kB / 1.249 GB, free: 0.8281 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/1.337, allocations: 0 / 1.249 GB, free: 0.8281 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/1.337, allocations: 11.98 kB / 1.249 GB, free: 0.8164 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.667e-05/1.337, allocations: 15.94 kB / 1.249 GB, free: 0.8047 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.804e-05/1.337, allocations: 45.42 kB / 1.249 GB, free: 0.7578 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-06/1.337, allocations: 0 / 1.249 GB, free: 0.7578 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/1.337, allocations: 0 / 1.249 GB, free: 0.7578 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/1.337, allocations: 4 kB / 1.249 GB, free: 0.7539 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/1.337, allocations: 142 kB / 1.249 GB, free: 0.582 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/1.337, allocations: 41.14 kB / 1.249 GB, free: 0.543 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.818e-05/1.337, allocations: 16.86 kB / 1.249 GB, free: 0.5234 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3921/1.729, allocations: 0.6032 MB / 1.249 GB, free: 270.2 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/1.729, allocations: 38.16 kB / 1.25 GB, free: 270.2 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=5): time 3.387e-06/1.729, allocations: 0 / 1.25 GB, free: 270.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0005391/1.73, allocations: 267.8 kB / 1.25 GB, free: 269.9 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.884e-05/1.73, allocations: 54.78 kB / 1.25 GB, free: 269.9 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.108e-05/1.73, allocations: 98.45 kB / 1.25 GB, free: 269.8 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/1.73, allocations: 25.7 kB / 1.25 GB, free: 269.7 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 2.707e-05/1.73, allocations: 87.11 kB / 1.25 GB, free: 269.7 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.327e-05/1.73, allocations: 28.77 kB / 1.25 GB, free: 269.6 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/1.73, allocations: 0 / 1.25 GB, free: 269.6 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.346e-05/1.73, allocations: 313.4 kB / 1.25 GB, free: 269.3 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.12e-05/1.73, allocations: 18.59 kB / 1.25 GB, free: 269.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.914e-05/1.73, allocations: 52.58 kB / 1.25 GB, free: 269.3 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.106e-05/1.73, allocations: 20.69 kB / 1.25 GB, free: 269.3 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/1.73, allocations: 3.062 kB / 1.25 GB, free: 269.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001019/1.73, allocations: 81.59 kB / 1.251 GB, free: 269.2 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/1.73, allocations: 6.219 kB / 1.251 GB, free: 269.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/1.73, allocations: 5.25 kB / 1.251 GB, free: 269.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/1.73, allocations: 0 / 1.251 GB, free: 269.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.684e-05/1.731, allocations: 29.27 kB / 1.251 GB, free: 269.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/1.731, allocations: 2.656 kB / 1.251 GB, free: 269.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.655e-05/1.731, allocations: 0 / 1.251 GB, free: 269.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/1.731, allocations: 6.656 kB / 1.251 GB, free: 269.2 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 4.857e-05/1.731, allocations: 108.3 kB / 1.251 GB, free: 269.1 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.737e-05/1.731, allocations: 5.141 kB / 1.251 GB, free: 269.1 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.44e-05/1.731, allocations: 14.06 kB / 1.251 GB, free: 269.1 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/1.731, allocations: 2.719 kB / 1.251 GB, free: 269.1 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/1.731, allocations: 0 / 1.251 GB, free: 269.1 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/1.731, allocations: 3.719 kB / 1.251 GB, free: 269.1 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/1.731, allocations: 153.5 kB / 1.251 GB, free: 269 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/1.731, allocations: 0 / 1.251 GB, free: 269 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.481e-05/1.731, allocations: 19.92 kB / 1.251 GB, free: 269 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/1.731, allocations: 3.062 kB / 1.251 GB, free: 269 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-06/1.731, allocations: 7.219 kB / 1.251 GB, free: 269 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/1.731, allocations: 0 / 1.251 GB, free: 269 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.731, allocations: 0 / 1.251 GB, free: 269 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001239/1.731, allocations: 164.4 kB / 1.251 GB, free: 268.8 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001689/1.731, allocations: 0.5504 MB / 1.252 GB, free: 268.3 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-05/1.731, allocations: 81.02 kB / 1.252 GB, free: 268.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/1.731, allocations: 3.062 kB / 1.252 GB, free: 268.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/1.732, allocations: 3.469 kB / 1.252 GB, free: 268.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.343e-05/1.732, allocations: 3.875 kB / 1.252 GB, free: 268.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/1.732, allocations: 6.406 kB / 1.252 GB, free: 268.2 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.659e-05/1.732, allocations: 78.53 kB / 1.252 GB, free: 268.2 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0008409/1.732, allocations: 22.47 kB / 1.252 GB, free: 268.2 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001395/1.733, allocations: 124.2 kB / 1.252 GB, free: 268.1 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 8.22e-05/1.733, allocations: 34.97 kB / 1.252 GB, free: 268.1 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/1.733, allocations: 2.844 kB / 1.252 GB, free: 268.1 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.53e-05/1.733, allocations: 11.84 kB / 1.252 GB, free: 268.1 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001723/1.733, allocations: 6.5 kB / 1.252 GB, free: 268.1 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004237/1.733, allocations: 264.9 kB / 1.252 GB, free: 268 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/1.733, allocations: 0.7011 MB / 1.253 GB, free: 267.3 MB / 0.8542 GB Notification: Performance of SimCode: time 2.3e-07/1.733, allocations: 3 kB / 1.253 GB, free: 267.3 MB / 0.8542 GB (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_maint_7_0_x_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_maint.7.0.x_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1)