Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") [: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/Buildings 1.6.0+build.1/package.mo): time 0.4913/0.4913, allocations: 94.74 MB / 102 MB, free: 10.36 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001061/0.001061, allocations: 177.8 kB / 125.3 MB, free: 12 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.197/1.197, allocations: 170.5 MB / 319 MB, free: 9.34 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001716/0.001716, allocations: 108.6 kB / 381 MB, free: 18.27 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.346e-06/8.506e-06, allocations: 224 / 448.6 MB, free: 2.113 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.15, allocations: 61.52 MB / 0.4981 GB, free: 4.5 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.272/1.422, allocations: 448.1 MB / 0.9357 GB, free: 181.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/1.422, allocations: 87.55 kB / 0.9358 GB, free: 181.7 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.417/3.84, allocations: 0.7172 GB / 1.653 GB, free: 53.05 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004965/3.84, allocations: 85.16 kB / 1.653 GB, free: 53.03 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 552 * Number of variables: 552 Notification: Performance of Generate backend data structure: time 0.01077/3.851, allocations: 2.664 MB / 1.656 GB, free: 51.28 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.226e-05/3.851, allocations: 8.781 kB / 1.656 GB, free: 51.28 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003112/3.854, allocations: 380.5 kB / 1.656 GB, free: 51.11 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008483/3.863, allocations: 2.709 MB / 1.659 GB, free: 49.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002937/3.863, allocations: 145 kB / 1.659 GB, free: 49.83 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001059/3.864, allocations: 139.7 kB / 1.659 GB, free: 49.83 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005147/3.869, allocations: 1.84 MB / 1.661 GB, free: 48.99 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006637/3.876, allocations: 2.264 MB / 1.663 GB, free: 47.61 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-05/3.876, allocations: 7.375 kB / 1.663 GB, free: 47.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005762/3.877, allocations: 2.344 kB / 1.663 GB, free: 47.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.454e-05/3.877, allocations: 54.34 kB / 1.663 GB, free: 47.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0198/3.897, allocations: 11.68 MB / 1.674 GB, free: 37.56 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/3.898, allocations: 0.7364 MB / 1.675 GB, free: 37.23 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001235/3.899, allocations: 0.6614 MB / 1.676 GB, free: 36.93 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006918/3.906, allocations: 3.115 MB / 1.679 GB, free: 34.29 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.138e-05/3.906, allocations: 51.31 kB / 1.679 GB, free: 34.23 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=126): time 3.597e-06/3.906, allocations: 1.25 kB / 1.679 GB, free: 34.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=151): time 0.01292/3.919, allocations: 3.938 MB / 1.683 GB, free: 32.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.138e-05/3.919, allocations: 145.6 kB / 1.683 GB, free: 31.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/3.923, allocations: 1.363 MB / 1.684 GB, free: 31.22 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002978/3.923, allocations: 35.2 kB / 1.684 GB, free: 31.19 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001091/3.924, allocations: 0.9371 MB / 1.685 GB, free: 30.38 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000824/3.925, allocations: 0.5167 MB / 1.686 GB, free: 29.92 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/3.926, allocations: 3.875 kB / 1.686 GB, free: 29.92 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002736/3.926, allocations: 390.6 kB / 1.686 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001923/3.928, allocations: 0.6257 MB / 1.687 GB, free: 29.27 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002489/3.93, allocations: 1.352 MB / 1.688 GB, free: 28 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003361/3.934, allocations: 1.048 MB / 1.689 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.592e-05/3.934, allocations: 4 kB / 1.689 GB, free: 27.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=268) (initialization): time 0.005236/3.939, allocations: 2.261 MB / 1.691 GB, free: 25.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001923/3.941, allocations: 8.186 MB / 1.699 GB, free: 16.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-05/3.941, allocations: 20 kB / 1.699 GB, free: 16.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.791e-05/3.941, allocations: 32 kB / 1.699 GB, free: 16.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003275/3.944, allocations: 0.702 MB / 1.7 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/3.947, allocations: 4.282 MB / 1.704 GB, free: 11.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003407/3.95, allocations: 195.5 kB / 1.704 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003502/3.95, allocations: 112 kB / 1.704 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/3.95, allocations: 4 kB / 1.704 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004166/3.955, allocations: 1.849 MB / 1.706 GB, free: 8.953 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.712e-05/3.955, allocations: 21.31 kB / 1.706 GB, free: 8.934 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.93e-05/3.955, allocations: 36 kB / 1.706 GB, free: 8.898 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002026/3.957, allocations: 0.5114 MB / 1.707 GB, free: 8.387 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-05/3.957, allocations: 43.8 kB / 1.707 GB, free: 8.344 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00352/3.96, allocations: 187.6 kB / 1.707 GB, free: 8.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003169/3.961, allocations: 99.98 kB / 1.707 GB, free: 8.062 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (268): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008795/3.962, allocations: 180.1 kB / 1.707 GB, free: 7.879 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009057/3.963, allocations: 225.3 kB / 1.707 GB, free: 7.656 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004487/3.967, allocations: 1.6 MB / 1.709 GB, free: 6.051 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-05/3.967, allocations: 16 kB / 1.709 GB, free: 6.035 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/3.967, allocations: 4 kB / 1.709 GB, free: 6.031 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/3.967, allocations: 7.969 kB / 1.709 GB, free: 6.023 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007381/3.974, allocations: 3.426 MB / 1.712 GB, free: 2.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/3.975, allocations: 5.375 kB / 1.712 GB, free: 2.586 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003038/3.978, allocations: 0.5149 MB / 1.713 GB, free: 2.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-05/3.978, allocations: 8 kB / 1.713 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-05/3.978, allocations: 19.97 kB / 1.713 GB, free: 2.043 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002584/3.98, allocations: 4.239 MB / 1.717 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/3.98, allocations: 0 / 1.717 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004834/3.985, allocations: 2.361 MB / 1.719 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001556/3.987, allocations: 294.3 kB / 1.72 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007122/3.987, allocations: 4 kB / 1.72 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001915/3.989, allocations: 145.6 kB / 1.72 GB, free: 10.81 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/3.99, allocations: 77.19 kB / 1.72 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001861/3.99, allocations: 55.97 kB / 1.72 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.002225/3.992, allocations: 0.9843 MB / 1.721 GB, free: 9.676 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005969/3.998, allocations: 1.234 MB / 1.722 GB, free: 8.441 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 15 (vol.dynBal.medium.p,vol.dynBal.medium.T,vol.dynBal.mC[1],vol1.dynBal.medium.p,vol1.dynBal.medium.T,vol1.dynBal.mC[1],vol2.dynBal.medium.p,vol2.dynBal.medium.T,vol2.dynBal.mC[1],vol3.dynBal.medium.p,vol3.dynBal.medium.T,vol3.dynBal.mC[1],vol4.dynBal.medium.p,vol4.dynBal.medium.T,vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (151): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002198/4, allocations: 0.6355 MB / 1.723 GB, free: 7.867 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009479/4.01, allocations: 3.277 MB / 1.726 GB, free: 4.512 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/4.01, allocations: 448 / 1.726 GB, free: 4.512 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003206/4.013, allocations: 0.8871 MB / 1.727 GB, free: 3.621 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007386/4.02, allocations: 0.9433 MB / 1.728 GB, free: 2.695 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3404/4.361, allocations: 4.264 MB / 1.732 GB, free: 108 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001902/4.363, allocations: 2.087 MB / 1.734 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of SimCode: time 1.804e-06/4.363, allocations: 0 / 1.734 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of Templates: time 0.0943/4.457, allocations: 51.14 MB / 1.784 GB, free: 105.5 MB / 0.5417 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)