Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.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.FixedResistances.Examples.PressureDrop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop") [: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.7474/0.7474, allocations: 141.8 MB / 149.1 MB, free: 12.16 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.001323/0.001324, allocations: 173.6 kB / 182 MB, free: 8.879 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.41/1.41, allocations: 221.3 MB / 436 MB, free: 1.344 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.001175/0.001175, allocations: 103.4 kB / 0.507 GB, free: 10.12 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001837/0.001837, allocations: 287.7 kB / 0.5885 GB, free: 6.961 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 7.484e-06/7.584e-06, allocations: 0 / 0.6759 GB, free: 13.33 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.4279, allocations: 82.77 MB / 0.7567 GB, free: 138 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.073/4.501, allocations: 1.827 GB / 2.584 GB, free: 204.7 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/4.501, allocations: 89.67 kB / 2.584 GB, free: 204.6 MB / 0.6982 GB Notification: Performance of FrontEnd: time 0.8607/5.362, allocations: 221.6 MB / 2.801 GB, free: 202.4 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 4.133e-05/5.362, allocations: 9.141 kB / 2.801 GB, free: 202.4 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.00123/5.363, allocations: 0.5597 MB / 2.801 GB, free: 202 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/5.363, allocations: 12.66 kB / 2.801 GB, free: 202 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000556/5.364, allocations: 57.81 kB / 2.801 GB, free: 202 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007118/5.365, allocations: 301.2 kB / 2.802 GB, free: 201.8 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/5.365, allocations: 6.531 kB / 2.802 GB, free: 201.8 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.857e-05/5.365, allocations: 14.92 kB / 2.802 GB, free: 201.8 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000231/5.365, allocations: 87.44 kB / 2.802 GB, free: 201.8 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000259/5.365, allocations: 153.9 kB / 2.802 GB, free: 201.7 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/5.365, allocations: 0 / 2.802 GB, free: 201.7 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/5.365, allocations: 7.594 kB / 2.802 GB, free: 201.7 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/5.365, allocations: 3.812 kB / 2.802 GB, free: 201.7 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/5.366, allocations: 0.7492 MB / 2.803 GB, free: 201.2 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/5.367, allocations: 65.92 kB / 2.803 GB, free: 201.2 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.81e-05/5.367, allocations: 63.61 kB / 2.803 GB, free: 201.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002973/5.367, allocations: 188.2 kB / 2.803 GB, free: 201 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/5.367, allocations: 33.38 kB / 2.803 GB, free: 201 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=10): time 3.026e-06/5.367, allocations: 3.375 kB / 2.803 GB, free: 201 MB / 0.6982 GB Notification: Performance of matching and sorting (n=10): time 0.0005321/5.368, allocations: 148.5 kB / 2.803 GB, free: 200.9 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.527e-05/5.368, allocations: 51.41 kB / 2.803 GB, free: 200.8 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001781/5.368, allocations: 184.2 kB / 2.803 GB, free: 200.8 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/5.368, allocations: 29.55 kB / 2.803 GB, free: 200.7 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 6.173e-05/5.368, allocations: 125.7 kB / 2.803 GB, free: 200.6 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 3.508e-05/5.368, allocations: 31.95 kB / 2.803 GB, free: 200.6 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-06/5.368, allocations: 0 / 2.803 GB, free: 200.6 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.592e-05/5.368, allocations: 335.1 kB / 2.804 GB, free: 200.3 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.83e-05/5.368, allocations: 25.95 kB / 2.804 GB, free: 200.3 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.507e-05/5.368, allocations: 82.88 kB / 2.804 GB, free: 200.2 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.085e-05/5.368, allocations: 36.3 kB / 2.804 GB, free: 200.2 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/5.368, allocations: 3.375 kB / 2.804 GB, free: 200.2 MB / 0.6982 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001997/5.368, allocations: 126.2 kB / 2.804 GB, free: 200.2 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.000122/5.369, allocations: 366.9 kB / 2.804 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/5.369, allocations: 0 / 2.804 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/5.369, allocations: 0 / 2.804 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/5.369, allocations: 36.78 kB / 2.804 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.904e-06/5.369, allocations: 2.422 kB / 2.804 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/5.369, allocations: 21.19 kB / 2.804 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/5.369, allocations: 7.375 kB / 2.804 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/5.369, allocations: 6.625 kB / 2.804 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001333/5.369, allocations: 76.28 kB / 2.805 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/5.369, allocations: 3.234 kB / 2.805 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.538e-06/5.369, allocations: 3.875 kB / 2.805 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/5.369, allocations: 28.77 kB / 2.805 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/5.369, allocations: 3.375 kB / 2.805 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/5.37, allocations: 17.58 kB / 2.805 GB, free: 199.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/5.37, allocations: 11.03 kB / 2.805 GB, free: 199.8 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 8.876e-05/5.37, allocations: 108.7 kB / 2.805 GB, free: 199.7 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.027e-05/5.37, allocations: 18.47 kB / 2.805 GB, free: 199.7 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002317/5.37, allocations: 126.4 kB / 2.805 GB, free: 199.7 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/5.37, allocations: 7.875 kB / 2.805 GB, free: 199.7 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/5.37, allocations: 4.828 kB / 2.805 GB, free: 199.7 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/5.37, allocations: 0 / 2.805 GB, free: 199.7 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006649/5.371, allocations: 0.5135 MB / 2.805 GB, free: 199.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/5.371, allocations: 3.781 kB / 2.805 GB, free: 199.3 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/5.371, allocations: 29.41 kB / 2.805 GB, free: 199.3 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/5.371, allocations: 3.188 kB / 2.805 GB, free: 199.3 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/5.371, allocations: 0 / 2.805 GB, free: 199.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/5.371, allocations: 7.031 kB / 2.805 GB, free: 199.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/5.371, allocations: 5.188 kB / 2.805 GB, free: 199.3 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000284/5.371, allocations: 340.5 kB / 2.806 GB, free: 199 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/5.371, allocations: 114.2 kB / 2.806 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.871e-05/5.371, allocations: 7.531 kB / 2.806 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/5.372, allocations: 18.42 kB / 2.806 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/5.372, allocations: 11.39 kB / 2.806 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/5.372, allocations: 7.75 kB / 2.806 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0001189/5.372, allocations: 156.1 kB / 2.806 GB, free: 198.8 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0006993/5.373, allocations: 156.7 kB / 2.806 GB, free: 198.8 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.00181/5.374, allocations: 1.046 MB / 2.807 GB, free: 198.6 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0002862/5.375, allocations: 123.9 kB / 2.807 GB, free: 198.6 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/5.375, allocations: 0 / 2.807 GB, free: 198.6 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 7.841e-05/5.375, allocations: 48.25 kB / 2.807 GB, free: 198.6 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007128/5.375, allocations: 97.17 kB / 2.807 GB, free: 198.6 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000686/5.376, allocations: 289.9 kB / 2.808 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/5.377, allocations: 0.7785 MB / 2.809 GB, free: 197.8 MB / 0.6982 GB Notification: Performance of SimCode: time 7.02e-07/5.377, allocations: 0 / 2.809 GB, free: 197.8 MB / 0.6982 GB Notification: Performance of Templates: time 0.01613/5.393, allocations: 8.998 MB / 2.817 GB, free: 197.6 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.pipe 2>&1)