Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.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_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow") [: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.7498/0.7498, allocations: 141.8 MB / 149.1 MB, free: 4.664 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 178.5 kB / 181.9 MB, free: 304 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 221.4 MB / 436 MB, free: 9.414 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.001193/0.001193, allocations: 98.5 kB / 0.507 GB, free: 24.3 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001869/0.001869, allocations: 280.5 kB / 0.5884 GB, free: 12.47 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.257e-05/1.306e-05, allocations: 0 / 0.6759 GB, free: 2.836 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4981/0.4982, allocations: 82.75 MB / 0.7567 GB, free: 113.1 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1224/0.6207, allocations: 108.3 MB / 0.8625 GB, free: 4.613 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.621, allocations: 87.69 kB / 0.8626 GB, free: 4.531 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.006079/0.6271, allocations: 1.974 MB / 0.8645 GB, free: 2.578 MB / 0.5263 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.6272, allocations: 0 / 0.8645 GB, free: 2.578 MB / 0.5263 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.0002315/0.6274, allocations: 331.5 kB / 0.8648 GB, free: 2.211 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.6275, allocations: 12.62 kB / 0.8648 GB, free: 2.199 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.6275, allocations: 0 / 0.8648 GB, free: 2.199 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.6276, allocations: 167.9 kB / 0.865 GB, free: 1.996 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.6276, allocations: 0 / 0.865 GB, free: 1.996 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.6277, allocations: 0.625 kB / 0.865 GB, free: 1.996 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.68e-05/0.6277, allocations: 4 kB / 0.865 GB, free: 1.992 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.325e-05/0.6278, allocations: 34.89 kB / 0.865 GB, free: 1.953 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.6278, allocations: 0 / 0.865 GB, free: 1.953 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.6278, allocations: 0.7188 kB / 0.865 GB, free: 1.953 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.6278, allocations: 0 / 0.865 GB, free: 1.953 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.628, allocations: 139 kB / 0.8651 GB, free: 1.781 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 5.071e-05/0.628, allocations: 23.02 kB / 0.8652 GB, free: 1.75 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.926e-05/0.6281, allocations: 6.641 kB / 0.8652 GB, free: 1.742 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.6281, allocations: 4.062 kB / 0.8652 GB, free: 1.738 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.6281, allocations: 41.47 kB / 0.8652 GB, free: 1.691 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=2): time 1.694e-06/0.6281, allocations: 0 / 0.8652 GB, free: 1.691 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2): time 0.0001458/0.6283, allocations: 42.42 kB / 0.8653 GB, free: 1.645 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.407e-05/0.6283, allocations: 52.16 kB / 0.8653 GB, free: 1.582 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.169e-05/0.6284, allocations: 90.14 kB / 0.8654 GB, free: 1.488 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 7.654e-06/0.6284, allocations: 25.7 kB / 0.8654 GB, free: 1.457 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 1.908e-05/0.6284, allocations: 80.8 kB / 0.8655 GB, free: 1.375 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 2.897e-05/0.6285, allocations: 11.91 kB / 0.8655 GB, free: 1.363 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-06/0.6285, allocations: 0.5938 kB / 0.8655 GB, free: 1.363 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 6.702e-05/0.6285, allocations: 311.5 kB / 0.8658 GB, free: 1.051 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.098e-05/0.6286, allocations: 0.5 kB / 0.8658 GB, free: 1.051 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.938e-06/0.6286, allocations: 4.625 kB / 0.8658 GB, free: 1.047 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.635e-05/0.6286, allocations: 1.062 kB / 0.8658 GB, free: 1.047 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.6286, allocations: 4 kB / 0.8658 GB, free: 1.043 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.978e-05/0.6287, allocations: 41.59 kB / 0.8659 GB, free: 0.9961 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.6287, allocations: 8.656 kB / 0.8659 GB, free: 0.9883 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.6287, allocations: 0.5312 kB / 0.8659 GB, free: 0.9883 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.6287, allocations: 0 / 0.8659 GB, free: 0.9883 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.6289, allocations: 8.719 kB / 0.8659 GB, free: 0.9805 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003025/0.6292, allocations: 0.5957 MB / 0.8665 GB, free: 372 kB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.148e-05/0.6293, allocations: 0 / 0.8665 GB, free: 372 kB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.6293, allocations: 0.5 kB / 0.8665 GB, free: 372 kB / 0.5263 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 6.101e-05/0.6294, allocations: 105.3 kB / 0.8666 GB, free: 260 kB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.307e-06/0.6294, allocations: 4.031 kB / 0.8666 GB, free: 256 kB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.6295, allocations: 46.12 kB / 0.8666 GB, free: 208 kB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.6295, allocations: 3.906 kB / 0.8666 GB, free: 204 kB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.6295, allocations: 0 / 0.8666 GB, free: 204 kB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.6295, allocations: 3.188 kB / 0.8666 GB, free: 204 kB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.434e-05/0.6296, allocations: 130.2 kB / 0.8667 GB, free: 36 kB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.6296, allocations: 0 / 0.8667 GB, free: 36 kB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.767e-05/0.6297, allocations: 11.94 kB / 0.8667 GB, free: 24 kB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.6297, allocations: 4.031 kB / 0.8667 GB, free: 20 kB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.6297, allocations: 0 / 0.8667 GB, free: 20 kB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000444/0.6301, allocations: 0.5898 MB / 0.8673 GB, free: 15.4 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.6302, allocations: 3.984 kB / 0.8673 GB, free: 15.4 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.116e-05/0.6303, allocations: 65.17 kB / 0.8674 GB, free: 15.32 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-05/0.6303, allocations: 81.09 kB / 0.8675 GB, free: 15.22 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.6303, allocations: 0 / 0.8675 GB, free: 15.22 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.926e-05/0.6304, allocations: 7.938 kB / 0.8675 GB, free: 15.21 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.509e-05/0.6304, allocations: 3.938 kB / 0.8675 GB, free: 15.21 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.6304, allocations: 0 / 0.8675 GB, free: 15.21 MB / 0.5419 GB Notification: Performance of sort global known variables: time 4.61e-05/0.6304, allocations: 75.28 kB / 0.8676 GB, free: 15.13 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.000206/0.6307, allocations: 12 kB / 0.8676 GB, free: 15.12 MB / 0.5419 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.0002045/0.6309, allocations: 119.3 kB / 0.8677 GB, free: 14.99 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001901/0.6311, allocations: 23.98 kB / 0.8677 GB, free: 14.97 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6311, allocations: 0 / 0.8677 GB, free: 14.97 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 9.484e-05/0.6312, allocations: 8 kB / 0.8677 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.6313, allocations: 13.52 kB / 0.8677 GB, free: 14.95 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001992/0.6315, allocations: 44.02 kB / 0.8678 GB, free: 14.88 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000294/0.6318, allocations: 0.6881 MB / 0.8684 GB, free: 14.16 MB / 0.5419 GB Notification: Performance of SimCode: time 2.11e-07/0.6318, allocations: 0 / 0.8684 GB, free: 14.16 MB / 0.5419 GB Notification: Performance of Templates: time 0.002724/0.6346, allocations: 444.4 kB / 0.8689 GB, free: 13.77 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1)