Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") [: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.7892/0.7892, allocations: 141.8 MB / 149.1 MB, free: 12.02 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.001233/0.001233, allocations: 180.7 kB / 182 MB, free: 8.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.55/1.55, allocations: 221.3 MB / 436 MB, free: 1 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.001041/0.001041, allocations: 98.06 kB / 0.507 GB, free: 9.996 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001999/0.001999, allocations: 276.8 kB / 0.5885 GB, free: 6.82 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 1.447e-05/1.45e-05, allocations: 4 kB / 0.6759 GB, free: 13.17 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5582/0.5583, allocations: 82.77 MB / 0.7567 GB, free: 138 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.492/6.05, allocations: 2.114 GB / 2.871 GB, free: 177.3 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/6.05, allocations: 83.95 kB / 2.871 GB, free: 177.2 MB / 0.6982 GB Notification: Performance of FrontEnd: time 2.158/8.208, allocations: 0.6594 GB / 3.531 GB, free: 34.21 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001697/8.209, allocations: 39.92 kB / 3.531 GB, free: 34.17 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.006043/8.215, allocations: 1.497 MB / 3.532 GB, free: 32.62 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/8.215, allocations: 12.03 kB / 3.532 GB, free: 32.61 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003445/8.218, allocations: 0.5878 MB / 3.533 GB, free: 32.02 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03364/8.252, allocations: 13.2 MB / 3.546 GB, free: 18.64 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001225/8.253, allocations: 317.1 kB / 3.546 GB, free: 18.33 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004092/8.254, allocations: 40 kB / 3.546 GB, free: 18.29 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001986/8.256, allocations: 0.749 MB / 3.547 GB, free: 17.54 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/8.258, allocations: 0.8949 MB / 3.548 GB, free: 16.6 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.182e-05/8.258, allocations: 4 kB / 3.548 GB, free: 16.6 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001795/8.258, allocations: 4 kB / 3.548 GB, free: 16.59 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-05/8.258, allocations: 29.3 kB / 3.548 GB, free: 16.57 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008379/8.267, allocations: 3.169 MB / 3.551 GB, free: 13.34 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009653/8.268, allocations: 0.5435 MB / 3.551 GB, free: 12.79 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004659/8.268, allocations: 365.3 kB / 3.552 GB, free: 12.43 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008342/8.269, allocations: 1.033 MB / 3.553 GB, free: 11.18 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000622/8.27, allocations: 473.3 kB / 3.553 GB, free: 10.7 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=57): time 4.859e-06/8.27, allocations: 0 / 3.553 GB, free: 10.7 MB / 0.6982 GB Notification: Performance of matching and sorting (n=57): time 0.002133/8.272, allocations: 0.759 MB / 3.554 GB, free: 9.926 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/8.272, allocations: 144.9 kB / 3.554 GB, free: 9.754 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/8.273, allocations: 0.649 MB / 3.555 GB, free: 9.094 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0001425/8.273, allocations: 29.7 kB / 3.555 GB, free: 9.059 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002934/8.273, allocations: 328.2 kB / 3.555 GB, free: 8.73 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/8.274, allocations: 181.3 kB / 3.555 GB, free: 8.551 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.267e-05/8.274, allocations: 0 / 3.555 GB, free: 8.551 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 9.111e-05/8.274, allocations: 333.9 kB / 3.555 GB, free: 8.219 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004591/8.274, allocations: 309.2 kB / 3.556 GB, free: 7.918 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005832/8.275, allocations: 0.4992 MB / 3.556 GB, free: 7.348 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008398/8.276, allocations: 420.5 kB / 3.557 GB, free: 6.941 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/8.276, allocations: 3.938 kB / 3.557 GB, free: 6.938 MB / 0.6982 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001659/8.277, allocations: 0.9001 MB / 3.557 GB, free: 6.027 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/8.277, allocations: 4 kB / 3.557 GB, free: 6.023 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/8.277, allocations: 7.938 kB / 3.557 GB, free: 6.016 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/8.277, allocations: 8 kB / 3.557 GB, free: 6.008 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/8.279, allocations: 224 kB / 3.558 GB, free: 5.789 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/8.279, allocations: 11.94 kB / 3.558 GB, free: 5.777 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/8.28, allocations: 291.3 kB / 3.558 GB, free: 5.492 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/8.28, allocations: 47.88 kB / 3.558 GB, free: 5.445 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * 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.0002444/8.281, allocations: 158.7 kB / 3.558 GB, free: 5.277 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/8.281, allocations: 90.88 kB / 3.558 GB, free: 5.188 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001543/8.282, allocations: 0.8365 MB / 3.559 GB, free: 4.348 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/8.282, allocations: 8 kB / 3.559 GB, free: 4.34 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/8.282, allocations: 0 / 3.559 GB, free: 4.34 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/8.282, allocations: 3.984 kB / 3.559 GB, free: 4.336 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003776/8.286, allocations: 2.974 MB / 3.562 GB, free: 1.223 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/8.286, allocations: 8 kB / 3.562 GB, free: 1.215 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006357/8.287, allocations: 131.8 kB / 3.562 GB, free: 1.086 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-05/8.287, allocations: 16 kB / 3.562 GB, free: 1.07 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.743e-05/8.287, allocations: 19.98 kB / 3.562 GB, free: 1.051 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/8.287, allocations: 15.88 kB / 3.562 GB, free: 1.035 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.325e-06/8.287, allocations: 15.84 kB / 3.562 GB, free: 1.02 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001856/8.289, allocations: 1.519 MB / 3.564 GB, free: 15.2 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000562/8.289, allocations: 318.2 kB / 3.564 GB, free: 14.87 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002096/8.29, allocations: 12 kB / 3.564 GB, free: 14.86 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/8.291, allocations: 127.9 kB / 3.564 GB, free: 14.73 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/8.291, allocations: 59.69 kB / 3.564 GB, free: 14.68 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/8.291, allocations: 39.97 kB / 3.564 GB, free: 14.64 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.0007537/8.292, allocations: 0.5109 MB / 3.565 GB, free: 14.13 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.002007/8.294, allocations: 415.3 kB / 3.565 GB, free: 13.72 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.003656/8.298, allocations: 1.752 MB / 3.567 GB, free: 11.89 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.001673/8.299, allocations: 0.7647 MB / 3.568 GB, free: 11.12 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/8.299, allocations: 8 kB / 3.568 GB, free: 11.11 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0007236/8.3, allocations: 444 kB / 3.568 GB, free: 10.68 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/8.302, allocations: 346.5 kB / 3.568 GB, free: 10.35 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004385/8.307, allocations: 1.533 MB / 3.57 GB, free: 8.684 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001494/8.308, allocations: 1.181 MB / 3.571 GB, free: 7.477 MB / 0.7138 GB Notification: Performance of SimCode: time 1.253e-06/8.308, allocations: 0 / 3.571 GB, free: 7.477 MB / 0.7138 GB Notification: Performance of Templates: time 0.4185/8.727, allocations: 25.33 MB / 3.596 GB, free: 165.4 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)