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: translateModel(BuildingSystems.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck") translateModel(BuildingSystems.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck") [: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.7348/0.7348, allocations: 141.8 MB / 149.1 MB, free: 13.09 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 187.6 kB / 181.9 MB, free: 9.781 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.462/1.462, allocations: 221.3 MB / 436 MB, free: 2.223 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.0009156/0.0009158, allocations: 93.67 kB / 0.507 GB, free: 10.98 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001733/0.001733, allocations: 269.6 kB / 0.5884 GB, free: 7.824 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 7.865e-06/7.965e-06, allocations: 0 / 0.6759 GB, free: 14.2 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5422/0.5423, allocations: 82.78 MB / 0.7567 GB, free: 139.1 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7811/1.323, allocations: 337 MB / 1.086 GB, free: 432 kB / 0.62 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003391/1.324, allocations: 77.88 kB / 1.086 GB, free: 388 kB / 0.62 GB Notification: Performance of FrontEnd: time 0.03167/1.356, allocations: 13.02 MB / 1.099 GB, free: 6.281 MB / 0.6357 GB Notification: Performance of Transformations before backend: time 1.173e-05/1.356, allocations: 4 kB / 1.099 GB, free: 6.277 MB / 0.6357 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.0004299/1.356, allocations: 338.2 kB / 1.099 GB, free: 5.906 MB / 0.6357 GB Notification: Performance of prepare preOptimizeDAE: time 6.199e-05/1.356, allocations: 9.031 kB / 1.099 GB, free: 5.898 MB / 0.6357 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/1.356, allocations: 15.83 kB / 1.099 GB, free: 5.887 MB / 0.6357 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/1.356, allocations: 163.1 kB / 1.099 GB, free: 5.688 MB / 0.6357 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/1.356, allocations: 8 kB / 1.099 GB, free: 5.68 MB / 0.6357 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.67e-05/1.357, allocations: 0 / 1.099 GB, free: 5.68 MB / 0.6357 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001012/1.357, allocations: 19.92 kB / 1.099 GB, free: 5.66 MB / 0.6357 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001136/1.357, allocations: 45.25 kB / 1.099 GB, free: 5.613 MB / 0.6357 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/1.357, allocations: 0 / 1.099 GB, free: 5.613 MB / 0.6357 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/1.357, allocations: 3.906 kB / 1.099 GB, free: 5.609 MB / 0.6357 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/1.357, allocations: 0 / 1.099 GB, free: 5.609 MB / 0.6357 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002131/1.357, allocations: 142.1 kB / 1.099 GB, free: 5.438 MB / 0.6357 GB Notification: Performance of preOpt comSubExp (simulation): time 8.906e-05/1.357, allocations: 41.41 kB / 1.099 GB, free: 5.398 MB / 0.6357 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.408e-05/1.357, allocations: 12.86 kB / 1.099 GB, free: 5.383 MB / 0.6357 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009285/1.358, allocations: 0.6154 MB / 1.1 GB, free: 4.676 MB / 0.6357 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.956e-05/1.358, allocations: 30.56 kB / 1.1 GB, free: 4.637 MB / 0.6357 GB Notification: Performance of pre-optimization done (n=5): time 1.342e-06/1.358, allocations: 0 / 1.1 GB, free: 4.637 MB / 0.6357 GB Notification: Performance of matching and sorting (n=7): time 0.0007511/1.359, allocations: 283.2 kB / 1.1 GB, free: 4.32 MB / 0.6357 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/1.359, allocations: 51.41 kB / 1.1 GB, free: 4.258 MB / 0.6357 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/1.359, allocations: 92.81 kB / 1.1 GB, free: 4.164 MB / 0.6357 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/1.359, allocations: 25.7 kB / 1.1 GB, free: 4.133 MB / 0.6357 GB Notification: Performance of collectInitialEqns (initialization): time 6.508e-05/1.359, allocations: 88.03 kB / 1.101 GB, free: 4.043 MB / 0.6357 GB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/1.359, allocations: 23.53 kB / 1.101 GB, free: 4.023 MB / 0.6357 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/1.359, allocations: 0 / 1.101 GB, free: 4.023 MB / 0.6357 GB Notification: Performance of setup shared object (initialization): time 0.0001728/1.359, allocations: 330.6 kB / 1.101 GB, free: 3.695 MB / 0.6357 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.887e-05/1.359, allocations: 7.812 kB / 1.101 GB, free: 3.691 MB / 0.6357 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-05/1.36, allocations: 44.16 kB / 1.101 GB, free: 3.633 MB / 0.6357 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.158e-05/1.36, allocations: 15.61 kB / 1.101 GB, free: 3.621 MB / 0.6357 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/1.36, allocations: 4 kB / 1.101 GB, free: 3.617 MB / 0.6357 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001441/1.36, allocations: 77.67 kB / 1.101 GB, free: 3.543 MB / 0.6357 GB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/1.36, allocations: 11.98 kB / 1.101 GB, free: 3.531 MB / 0.6357 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/1.36, allocations: 0 / 1.101 GB, free: 3.531 MB / 0.6357 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/1.36, allocations: 7.953 kB / 1.101 GB, free: 3.523 MB / 0.6357 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/1.36, allocations: 23.92 kB / 1.101 GB, free: 3.5 MB / 0.6357 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/1.36, allocations: 0 / 1.101 GB, free: 3.5 MB / 0.6357 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.106e-05/1.36, allocations: 4 kB / 1.101 GB, free: 3.496 MB / 0.6357 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/1.36, allocations: 8 kB / 1.101 GB, free: 3.492 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 0.0001021/1.36, allocations: 112.9 kB / 1.101 GB, free: 3.375 MB / 0.6357 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.492e-05/1.36, allocations: 7.906 kB / 1.101 GB, free: 3.367 MB / 0.6357 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.221e-05/1.36, allocations: 7.625 kB / 1.101 GB, free: 3.367 MB / 0.6357 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/1.36, allocations: 0 / 1.101 GB, free: 3.367 MB / 0.6357 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/1.36, allocations: 0 / 1.101 GB, free: 3.367 MB / 0.6357 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/1.36, allocations: 0 / 1.101 GB, free: 3.367 MB / 0.6357 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002811/1.361, allocations: 157.4 kB / 1.101 GB, free: 3.18 MB / 0.6357 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/1.361, allocations: 0 / 1.101 GB, free: 3.18 MB / 0.6357 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.71e-05/1.361, allocations: 15.94 kB / 1.101 GB, free: 3.164 MB / 0.6357 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/1.361, allocations: 8 kB / 1.101 GB, free: 3.156 MB / 0.6357 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/1.361, allocations: 4.156 kB / 1.101 GB, free: 3.152 MB / 0.6357 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/1.361, allocations: 7.984 kB / 1.101 GB, free: 3.145 MB / 0.6357 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/1.361, allocations: 0 / 1.101 GB, free: 3.145 MB / 0.6357 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000244/1.361, allocations: 159.1 kB / 1.102 GB, free: 2.98 MB / 0.6357 GB Notification: Performance of postOpt removeConstants (simulation): time 7.338e-05/1.361, allocations: 84.92 kB / 1.102 GB, free: 2.883 MB / 0.6357 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/1.361, allocations: 3.984 kB / 1.102 GB, free: 2.879 MB / 0.6357 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/1.361, allocations: 0 / 1.102 GB, free: 2.879 MB / 0.6357 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.402e-05/1.361, allocations: 11.91 kB / 1.102 GB, free: 2.867 MB / 0.6357 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/1.361, allocations: 0 / 1.102 GB, free: 2.867 MB / 0.6357 GB Notification: Performance of sort global known variables: time 5.957e-05/1.361, allocations: 83.27 kB / 1.102 GB, free: 2.785 MB / 0.6357 GB Notification: Performance of remove unused functions: time 0.0002872/1.362, allocations: 12 kB / 1.102 GB, free: 2.773 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.0002743/1.362, allocations: 122.9 kB / 1.102 GB, free: 2.648 MB / 0.6357 GB Notification: Performance of simCode: created initialization part: time 0.0001391/1.362, allocations: 37.2 kB / 1.102 GB, free: 2.617 MB / 0.6357 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/1.362, allocations: 0 / 1.102 GB, free: 2.617 MB / 0.6357 GB Notification: Performance of simCode: created simulation system equations: time 2.64e-05/1.362, allocations: 15.81 kB / 1.102 GB, free: 2.605 MB / 0.6357 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/1.362, allocations: 0 / 1.102 GB, free: 2.605 MB / 0.6357 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006609/1.363, allocations: 258.6 kB / 1.102 GB, free: 2.332 MB / 0.6357 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003831/1.363, allocations: 0.6997 MB / 1.103 GB, free: 1.605 MB / 0.6357 GB Notification: Performance of SimCode: time 2.51e-07/1.363, allocations: 0 / 1.103 GB, free: 1.605 MB / 0.6357 GB Notification: Performance of Templates: time 0.004038/1.367, allocations: 0.8037 MB / 1.104 GB, free: 0.8164 MB / 0.6357 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.makefile (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 & ./BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe 2>&1)