Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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/BuildSysPro 3.5.0/package.mo): time 0.9917/0.9917, allocations: 127.4 MB / 134.6 MB, free: 4.074 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001197/0.001197, allocations: 185.2 kB / 164.4 MB, free: 6.871 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.788/1.788, allocations: 205.1 MB / 399.1 MB, free: 6.121 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001021/0.00102, allocations: 90.58 kB / 476.3 MB, free: 8.883 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3541/0.3552, allocations: 82.87 MB / 0.546 GB, free: 42.67 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.5466, allocations: 76.74 MB / 0.621 GB, free: 13.86 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.075/1.622, allocations: 325.8 MB / 0.9392 GB, free: 176.7 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/1.622, allocations: 67.88 kB / 0.9392 GB, free: 176.6 MB / 0.6198 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.02583/1.648, allocations: 12.73 MB / 0.9517 GB, free: 163.7 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/1.648, allocations: 8 kB / 0.9517 GB, free: 163.7 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/1.648, allocations: 4 kB / 0.9517 GB, free: 163.7 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/1.648, allocations: 171 kB / 0.9518 GB, free: 163.5 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/1.649, allocations: 0 / 0.9518 GB, free: 163.5 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.607e-05/1.649, allocations: 4 kB / 0.9518 GB, free: 163.5 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001014/1.649, allocations: 19.92 kB / 0.9519 GB, free: 163.5 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/1.649, allocations: 49.69 kB / 0.9519 GB, free: 163.4 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/1.649, allocations: 0 / 0.9519 GB, free: 163.4 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/1.649, allocations: 0 / 0.9519 GB, free: 163.4 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/1.649, allocations: 3.906 kB / 0.9519 GB, free: 163.4 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001771/1.649, allocations: 146.2 kB / 0.952 GB, free: 163.3 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 7.756e-05/1.649, allocations: 37.7 kB / 0.9521 GB, free: 163.2 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.262e-05/1.649, allocations: 12.86 kB / 0.9521 GB, free: 163.2 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008781/1.65, allocations: 0.6141 MB / 0.9527 GB, free: 162.5 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/1.65, allocations: 30.56 kB / 0.9527 GB, free: 162.4 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 1.403e-06/1.65, allocations: 0 / 0.9527 GB, free: 162.4 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.000642/1.651, allocations: 278.5 kB / 0.953 GB, free: 162.1 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/1.651, allocations: 55.41 kB / 0.953 GB, free: 162.1 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.648e-05/1.651, allocations: 101 kB / 0.9531 GB, free: 161.9 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/1.651, allocations: 25.7 kB / 0.9532 GB, free: 161.9 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.933e-05/1.651, allocations: 84.05 kB / 0.9532 GB, free: 161.8 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.782e-05/1.651, allocations: 27.64 kB / 0.9533 GB, free: 161.8 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-06/1.651, allocations: 0 / 0.9533 GB, free: 161.8 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.565e-05/1.651, allocations: 318.8 kB / 0.9536 GB, free: 161.5 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.276e-05/1.651, allocations: 12 kB / 0.9536 GB, free: 161.5 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.356e-05/1.651, allocations: 49.14 kB / 0.9536 GB, free: 161.4 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.534e-05/1.651, allocations: 19.98 kB / 0.9537 GB, free: 161.4 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/1.651, allocations: 0 / 0.9537 GB, free: 161.4 MB / 0.6198 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000121/1.651, allocations: 77.56 kB / 0.9537 GB, free: 161.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/1.651, allocations: 8.125 kB / 0.9537 GB, free: 161.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/1.651, allocations: 4 kB / 0.9537 GB, free: 161.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/1.651, allocations: 0 / 0.9537 GB, free: 161.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.554e-05/1.651, allocations: 23.92 kB / 0.9538 GB, free: 161.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/1.652, allocations: 7.906 kB / 0.9538 GB, free: 161.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.469e-05/1.652, allocations: 0 / 0.9538 GB, free: 161.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/1.652, allocations: 4.25 kB / 0.9538 GB, free: 161.3 MB / 0.6198 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.0001047/1.652, allocations: 108.9 kB / 0.9539 GB, free: 161.1 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.501e-05/1.652, allocations: 3.906 kB / 0.9539 GB, free: 161.1 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.901e-05/1.652, allocations: 20.05 kB / 0.9539 GB, free: 161.1 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/1.652, allocations: 0 / 0.9539 GB, free: 161.1 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/1.652, allocations: 4 kB / 0.9539 GB, free: 161.1 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/1.652, allocations: 3.938 kB / 0.9539 GB, free: 161.1 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/1.652, allocations: 150.2 kB / 0.9541 GB, free: 160.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/1.652, allocations: 0 / 0.9541 GB, free: 160.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.917e-05/1.652, allocations: 15.94 kB / 0.9541 GB, free: 160.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/1.652, allocations: 0 / 0.9541 GB, free: 160.9 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/1.652, allocations: 0 / 0.9541 GB, free: 160.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/1.652, allocations: 0 / 0.9541 GB, free: 160.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.652, allocations: 7.906 kB / 0.9541 GB, free: 160.9 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001386/1.652, allocations: 171.4 kB / 0.9542 GB, free: 160.7 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001843/1.652, allocations: 0.5389 MB / 0.9548 GB, free: 160.2 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/1.653, allocations: 89.09 kB / 0.9548 GB, free: 160.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/1.653, allocations: 0 / 0.9548 GB, free: 160.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/1.653, allocations: 11.91 kB / 0.9549 GB, free: 160 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.572e-05/1.653, allocations: 3.984 kB / 0.9549 GB, free: 160 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/1.653, allocations: 4 kB / 0.9549 GB, free: 160 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.833e-05/1.653, allocations: 75.28 kB / 0.9549 GB, free: 160 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000855/1.654, allocations: 16 kB / 0.955 GB, free: 159.9 MB / 0.6198 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.0001723/1.654, allocations: 128 kB / 0.9551 GB, free: 159.8 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001167/1.654, allocations: 36.17 kB / 0.9551 GB, free: 159.8 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/1.654, allocations: 0 / 0.9551 GB, free: 159.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 2.133e-05/1.654, allocations: 19.92 kB / 0.9551 GB, free: 159.8 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/1.654, allocations: 8.25 kB / 0.9551 GB, free: 159.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005907/1.655, allocations: 258.3 kB / 0.9554 GB, free: 159.5 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/1.655, allocations: 0.7075 MB / 0.9561 GB, free: 158.7 MB / 0.6198 GB Notification: Performance of SimCode: time 2.4e-07/1.655, allocations: 0 / 0.9561 GB, free: 158.7 MB / 0.6198 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterDerivativeCheck.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 BuildSysPro_BuildSysPro_IBPSA_Media_Examples_WaterDerivativeCheck.fmu > BuildSysPro_BuildSysPro.IBPSA.Media.Examples.WaterDerivativeCheck.pipe 2>&1)