Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.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.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp") [: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.7916/0.7916, allocations: 141.8 MB / 149.1 MB, free: 12.05 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.001177/0.001177, allocations: 183.8 kB / 181.9 MB, free: 8.797 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.493/1.493, allocations: 221.3 MB / 436 MB, free: 0.9961 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.001003/0.001003, allocations: 101.2 kB / 0.507 GB, free: 17.85 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001781/0.001781, allocations: 285.3 kB / 0.5885 GB, free: 2.715 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.348e-06/9.388e-06, allocations: 1.406 kB / 0.6759 GB, free: 136.4 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.192, allocations: 82.78 MB / 0.7567 GB, free: 81.41 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1369/0.3289, allocations: 108.4 MB / 0.8626 GB, free: 4.855 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.3292, allocations: 82.03 kB / 0.8627 GB, free: 4.777 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.01007/0.3393, allocations: 3.143 MB / 0.8657 GB, free: 1.629 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 9.398e-06/0.3393, allocations: 0 / 0.8657 GB, free: 1.629 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003348/0.3397, allocations: 330.4 kB / 0.8661 GB, free: 1.262 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.3397, allocations: 12.03 kB / 0.8661 GB, free: 1.25 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.3398, allocations: 0 / 0.8661 GB, free: 1.25 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.3399, allocations: 163 kB / 0.8662 GB, free: 1.051 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.3399, allocations: 0 / 0.8662 GB, free: 1.051 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.34, allocations: 4 kB / 0.8662 GB, free: 1.047 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.588e-05/0.34, allocations: 0 / 0.8662 GB, free: 1.047 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.041e-05/0.3401, allocations: 41.62 kB / 0.8663 GB, free: 1 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-06/0.3401, allocations: 0 / 0.8663 GB, free: 1 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.3401, allocations: 0 / 0.8663 GB, free: 1 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3402, allocations: 0 / 0.8663 GB, free: 1 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.3403, allocations: 142.1 kB / 0.8664 GB, free: 0.8242 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.143e-05/0.3404, allocations: 18.61 kB / 0.8664 GB, free: 0.7969 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.338e-05/0.3404, allocations: 12.86 kB / 0.8664 GB, free: 0.7812 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.3405, allocations: 7.984 kB / 0.8664 GB, free: 0.7734 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.3405, allocations: 34.56 kB / 0.8665 GB, free: 0.7305 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.3405, allocations: 0 / 0.8665 GB, free: 0.7305 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2): time 0.0001496/0.3407, allocations: 37.64 kB / 0.8665 GB, free: 0.6875 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.3407, allocations: 51.41 kB / 0.8666 GB, free: 0.625 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.528e-05/0.3408, allocations: 85 kB / 0.8666 GB, free: 0.5352 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.3408, allocations: 29.7 kB / 0.8667 GB, free: 0.5 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.154e-05/0.3408, allocations: 84.3 kB / 0.8667 GB, free: 424 kB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/0.3409, allocations: 7.906 kB / 0.8668 GB, free: 416 kB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-06/0.3409, allocations: 3.938 kB / 0.8668 GB, free: 412 kB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.341, allocations: 314.8 kB / 0.8671 GB, free: 88 kB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.24e-05/0.3411, allocations: 4 kB / 0.8671 GB, free: 84 kB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.712e-06/0.3411, allocations: 0 / 0.8671 GB, free: 84 kB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.781e-05/0.3411, allocations: 4 kB / 0.8671 GB, free: 80 kB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.3411, allocations: 0 / 0.8671 GB, free: 80 kB / 0.5419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.185e-05/0.3412, allocations: 45.7 kB / 0.8671 GB, free: 28 kB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.3412, allocations: 8 kB / 0.8671 GB, free: 20 kB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3412, allocations: 0 / 0.8671 GB, free: 20 kB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.3412, allocations: 3.984 kB / 0.8671 GB, free: 16 kB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.3414, allocations: 8 kB / 0.8671 GB, free: 8 kB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004809/0.3419, allocations: 0.5976 MB / 0.8677 GB, free: 15.39 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.08e-05/0.3419, allocations: 0 / 0.8677 GB, free: 15.39 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.3419, allocations: 4.094 kB / 0.8677 GB, free: 15.38 MB / 0.5575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.489e-05/0.342, allocations: 105 kB / 0.8678 GB, free: 15.27 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-06/0.3421, allocations: 0 / 0.8678 GB, free: 15.27 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001183/0.3422, allocations: 48.91 kB / 0.8679 GB, free: 15.22 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3422, allocations: 0 / 0.8679 GB, free: 15.22 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.309e-06/0.3422, allocations: 0 / 0.8679 GB, free: 15.22 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.3422, allocations: 0 / 0.8679 GB, free: 15.22 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.3423, allocations: 126.2 kB / 0.868 GB, free: 15.06 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.3423, allocations: 4.031 kB / 0.868 GB, free: 15.06 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.342e-05/0.3424, allocations: 19.86 kB / 0.868 GB, free: 15.04 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3424, allocations: 0 / 0.868 GB, free: 15.04 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.3424, allocations: 0 / 0.868 GB, free: 15.04 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003449/0.3428, allocations: 0.5859 MB / 0.8686 GB, free: 14.43 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3428, allocations: 0 / 0.8686 GB, free: 14.43 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.483e-05/0.3429, allocations: 69.16 kB / 0.8686 GB, free: 14.34 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.556e-05/0.3429, allocations: 77.11 kB / 0.8687 GB, free: 14.25 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.343, allocations: 4 kB / 0.8687 GB, free: 14.25 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.521e-05/0.343, allocations: 0 / 0.8687 GB, free: 14.25 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.031e-05/0.343, allocations: 7.922 kB / 0.8687 GB, free: 14.24 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.343, allocations: 0 / 0.8687 GB, free: 14.24 MB / 0.5575 GB Notification: Performance of sort global known variables: time 4.629e-05/0.3431, allocations: 83.19 kB / 0.8688 GB, free: 14.16 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0001974/0.3433, allocations: 16.12 kB / 0.8688 GB, free: 14.14 MB / 0.5575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000196/0.3435, allocations: 126.5 kB / 0.8689 GB, free: 14.01 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0001755/0.3437, allocations: 15.98 kB / 0.869 GB, free: 14 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3437, allocations: 0 / 0.869 GB, free: 14 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 9.776e-05/0.3438, allocations: 12 kB / 0.869 GB, free: 13.98 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000114/0.3439, allocations: 0.6094 kB / 0.869 GB, free: 13.98 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001995/0.3441, allocations: 60.12 kB / 0.869 GB, free: 13.9 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002937/0.3444, allocations: 0.6841 MB / 0.8697 GB, free: 13.19 MB / 0.5575 GB Notification: Performance of SimCode: time 5e-07/0.3444, allocations: 0 / 0.8697 GB, free: 13.19 MB / 0.5575 GB Notification: Performance of Templates: time 0.002581/0.347, allocations: 432.8 kB / 0.8701 GB, free: 12.8 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1)