Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7092/0.7092, allocations: 141.8 MB / 149.1 MB, free: 4.32 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 178.4 kB / 181.9 MB, free: 15.98 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 221.4 MB / 436 MB, free: 9.145 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000886/0.000886, allocations: 97.52 kB / 0.507 GB, free: 24.21 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00172/0.00172, allocations: 283.4 kB / 0.5884 GB, free: 12.15 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1713/0.1731, allocations: 89.64 MB / 0.676 GB, free: 2.434 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.5191, allocations: 82.77 MB / 0.7568 GB, free: 112.7 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5941/1.113, allocations: 337 MB / 1.086 GB, free: 9.715 MB / 0.62 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/1.114, allocations: 73.78 kB / 1.086 GB, free: 9.68 MB / 0.62 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.02997/1.144, allocations: 13.36 MB / 1.099 GB, free: 15.22 MB / 0.6357 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/1.144, allocations: 8 kB / 1.099 GB, free: 15.21 MB / 0.6357 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/1.144, allocations: 11.91 kB / 1.099 GB, free: 15.2 MB / 0.6357 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/1.144, allocations: 167 kB / 1.099 GB, free: 15 MB / 0.6357 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/1.144, allocations: 3.984 kB / 1.099 GB, free: 15 MB / 0.6357 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/1.144, allocations: 7.812 kB / 1.099 GB, free: 14.99 MB / 0.6357 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.224e-05/1.144, allocations: 15.98 kB / 1.099 GB, free: 14.98 MB / 0.6357 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001017/1.144, allocations: 49.5 kB / 1.099 GB, free: 14.93 MB / 0.6357 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/1.144, allocations: 4 kB / 1.099 GB, free: 14.92 MB / 0.6357 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/1.144, allocations: 3.906 kB / 1.099 GB, free: 14.92 MB / 0.6357 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/1.144, allocations: 0 / 1.099 GB, free: 14.92 MB / 0.6357 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001621/1.144, allocations: 145.6 kB / 1.099 GB, free: 14.74 MB / 0.6357 GB Notification: Performance of preOpt comSubExp (simulation): time 6.932e-05/1.144, allocations: 41.22 kB / 1.099 GB, free: 14.7 MB / 0.6357 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.574e-05/1.144, allocations: 12.86 kB / 1.099 GB, free: 14.69 MB / 0.6357 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006993/1.145, allocations: 0.6105 MB / 1.1 GB, free: 13.98 MB / 0.6357 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/1.145, allocations: 34.55 kB / 1.1 GB, free: 13.94 MB / 0.6357 GB Notification: Performance of pre-optimization done (n=5): time 1.583e-06/1.145, allocations: 4 kB / 1.1 GB, free: 13.94 MB / 0.6357 GB Notification: Performance of matching and sorting (n=7): time 0.0005415/1.146, allocations: 277.5 kB / 1.1 GB, free: 13.62 MB / 0.6357 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/1.146, allocations: 51.41 kB / 1.1 GB, free: 13.56 MB / 0.6357 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.643e-05/1.146, allocations: 92.06 kB / 1.101 GB, free: 13.47 MB / 0.6357 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/1.146, allocations: 25.7 kB / 1.101 GB, free: 13.44 MB / 0.6357 GB Notification: Performance of collectInitialEqns (initialization): time 4.024e-05/1.146, allocations: 91.72 kB / 1.101 GB, free: 13.35 MB / 0.6357 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/1.146, allocations: 22.91 kB / 1.101 GB, free: 13.33 MB / 0.6357 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-06/1.146, allocations: 7.938 kB / 1.101 GB, free: 13.32 MB / 0.6357 GB Notification: Performance of setup shared object (initialization): time 0.0001167/1.146, allocations: 322.7 kB / 1.101 GB, free: 13 MB / 0.6357 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.311e-05/1.146, allocations: 6.625 kB / 1.101 GB, free: 12.99 MB / 0.6357 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.783e-05/1.146, allocations: 47.84 kB / 1.101 GB, free: 12.93 MB / 0.6357 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.794e-05/1.146, allocations: 19.17 kB / 1.101 GB, free: 12.92 MB / 0.6357 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/1.146, allocations: 0 / 1.101 GB, free: 12.92 MB / 0.6357 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001291/1.146, allocations: 77 kB / 1.101 GB, free: 12.84 MB / 0.6357 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/1.146, allocations: 11.98 kB / 1.101 GB, free: 12.83 MB / 0.6357 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/1.146, allocations: 0 / 1.101 GB, free: 12.83 MB / 0.6357 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/1.146, allocations: 7.906 kB / 1.101 GB, free: 12.82 MB / 0.6357 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.484e-05/1.147, allocations: 16 kB / 1.101 GB, free: 12.81 MB / 0.6357 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/1.147, allocations: 1.609 kB / 1.101 GB, free: 12.81 MB / 0.6357 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.339e-05/1.147, allocations: 8 kB / 1.101 GB, free: 12.8 MB / 0.6357 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/1.147, allocations: 7.812 kB / 1.101 GB, free: 12.8 MB / 0.6357 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 9.597e-05/1.147, allocations: 108.9 kB / 1.101 GB, free: 12.68 MB / 0.6357 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/1.147, allocations: 7.906 kB / 1.101 GB, free: 12.68 MB / 0.6357 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.426e-05/1.147, allocations: 7.812 kB / 1.101 GB, free: 12.68 MB / 0.6357 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/1.147, allocations: 288 / 1.101 GB, free: 12.68 MB / 0.6357 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/1.147, allocations: 0 / 1.101 GB, free: 12.68 MB / 0.6357 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/1.147, allocations: 7.922 kB / 1.101 GB, free: 12.67 MB / 0.6357 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002209/1.147, allocations: 150 kB / 1.101 GB, free: 12.49 MB / 0.6357 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/1.147, allocations: 4 kB / 1.101 GB, free: 12.48 MB / 0.6357 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.366e-05/1.147, allocations: 12 kB / 1.101 GB, free: 12.47 MB / 0.6357 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/1.147, allocations: 4 kB / 1.101 GB, free: 12.47 MB / 0.6357 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/1.147, allocations: 3.906 kB / 1.101 GB, free: 12.46 MB / 0.6357 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/1.147, allocations: 3.984 kB / 1.101 GB, free: 12.46 MB / 0.6357 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.147, allocations: 256 / 1.101 GB, free: 12.46 MB / 0.6357 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001612/1.147, allocations: 169.1 kB / 1.102 GB, free: 12.29 MB / 0.6357 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002962/1.148, allocations: 0.5521 MB / 1.102 GB, free: 11.73 MB / 0.6357 GB Notification: Performance of postOpt removeConstants (simulation): time 4.973e-05/1.148, allocations: 81.09 kB / 1.102 GB, free: 11.64 MB / 0.6357 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/1.148, allocations: 3.906 kB / 1.102 GB, free: 11.63 MB / 0.6357 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/1.148, allocations: 4 kB / 1.102 GB, free: 11.63 MB / 0.6357 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.719e-05/1.148, allocations: 4.219 kB / 1.102 GB, free: 11.62 MB / 0.6357 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/1.148, allocations: 7.938 kB / 1.102 GB, free: 11.62 MB / 0.6357 GB Notification: Performance of sort global known variables: time 3.271e-05/1.148, allocations: 81.84 kB / 1.102 GB, free: 11.54 MB / 0.6357 GB Notification: Performance of remove unused functions: time 0.0007936/1.149, allocations: 12 kB / 1.102 GB, free: 11.53 MB / 0.6357 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.0001611/1.149, allocations: 121.8 kB / 1.102 GB, free: 11.4 MB / 0.6357 GB Notification: Performance of simCode: created initialization part: time 0.000105/1.149, allocations: 37.44 kB / 1.102 GB, free: 11.37 MB / 0.6357 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.149, allocations: 0 / 1.102 GB, free: 11.37 MB / 0.6357 GB Notification: Performance of simCode: created simulation system equations: time 2.149e-05/1.149, allocations: 10.75 kB / 1.102 GB, free: 11.36 MB / 0.6357 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001606/1.149, allocations: 7.984 kB / 1.102 GB, free: 11.36 MB / 0.6357 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005203/1.15, allocations: 261.3 kB / 1.103 GB, free: 11.08 MB / 0.6357 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/1.15, allocations: 0.7036 MB / 1.103 GB, free: 10.35 MB / 0.6357 GB Notification: Performance of SimCode: time 3.1e-07/1.15, allocations: 4 kB / 1.103 GB, free: 10.35 MB / 0.6357 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe 2>&1)