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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp",fmuType="me",version="2.0",platforms={"static"}) [: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.7238/0.7238, allocations: 141.8 MB / 149.1 MB, free: 1.43 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.001023/0.001023, allocations: 189.3 kB / 181.9 MB, free: 0.75 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.3/1.3, allocations: 221.4 MB / 436 MB, free: 5.473 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.0009308/0.0009308, allocations: 100.6 kB / 0.507 GB, free: 2.152 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001784/0.001784, allocations: 286.2 kB / 0.5884 GB, free: 47.27 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4328/0.4346, allocations: 89.63 MB / 0.676 GB, free: 59.53 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.6055, allocations: 82.79 MB / 0.7568 GB, free: 0.6133 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1412/0.7468, allocations: 108.4 MB / 0.8627 GB, free: 4.035 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.747, allocations: 77.97 kB / 0.8628 GB, free: 3.961 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.01078/0.7578, allocations: 3.458 MB / 0.8661 GB, free: 464 kB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.7579, allocations: 12 kB / 0.8662 GB, free: 452 kB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.492e-05/0.7579, allocations: 0 / 0.8662 GB, free: 452 kB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.7581, allocations: 170.9 kB / 0.8663 GB, free: 240 kB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.7581, allocations: 0 / 0.8663 GB, free: 240 kB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-06/0.7581, allocations: 0 / 0.8663 GB, free: 240 kB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.162e-05/0.7582, allocations: 8 kB / 0.8663 GB, free: 232 kB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.654e-05/0.7582, allocations: 33.7 kB / 0.8664 GB, free: 192 kB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.7582, allocations: 0 / 0.8664 GB, free: 192 kB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.7582, allocations: 0 / 0.8664 GB, free: 192 kB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.7583, allocations: 0 / 0.8664 GB, free: 192 kB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001365/0.7584, allocations: 138.1 kB / 0.8665 GB, free: 16 kB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2959/1.054, allocations: 24.67 kB / 0.8665 GB, free: 119.4 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.437e-05/1.054, allocations: 12.61 kB / 0.8665 GB, free: 119.4 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.74e-05/1.054, allocations: 0 / 0.8665 GB, free: 119.4 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/1.054, allocations: 30.56 kB / 0.8666 GB, free: 119.4 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=2): time 1.703e-06/1.054, allocations: 0 / 0.8666 GB, free: 119.4 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2): time 0.0001488/1.055, allocations: 41.03 kB / 0.8666 GB, free: 119.3 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.192e-05/1.055, allocations: 51.41 kB / 0.8666 GB, free: 119.3 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.487e-05/1.055, allocations: 91.66 kB / 0.8667 GB, free: 119.2 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 7.214e-06/1.055, allocations: 25.7 kB / 0.8668 GB, free: 119.1 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 1.158e-05/1.055, allocations: 83.89 kB / 0.8668 GB, free: 119.1 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/1.055, allocations: 6.5 kB / 0.8668 GB, free: 119.1 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-06/1.055, allocations: 0 / 0.8668 GB, free: 119.1 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 4.739e-05/1.055, allocations: 314.5 kB / 0.8671 GB, free: 118.7 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.829e-06/1.055, allocations: 3.906 kB / 0.8672 GB, free: 118.7 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.037e-06/1.055, allocations: 7.562 kB / 0.8672 GB, free: 118.7 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.445e-05/1.055, allocations: 4.719 kB / 0.8672 GB, free: 118.7 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/1.055, allocations: 0 / 0.8672 GB, free: 118.7 MB / 0.5419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.961e-05/1.055, allocations: 37.17 kB / 0.8672 GB, free: 118.7 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/1.055, allocations: 3.844 kB / 0.8672 GB, free: 118.7 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/1.055, allocations: 0 / 0.8672 GB, free: 118.7 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/1.055, allocations: 0 / 0.8672 GB, free: 118.7 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/1.055, allocations: 10.66 kB / 0.8672 GB, free: 118.7 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002473/1.055, allocations: 0.5986 MB / 0.8678 GB, free: 118.1 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.139e-05/1.055, allocations: 0 / 0.8678 GB, free: 118.1 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.481e-06/1.055, allocations: 0 / 0.8678 GB, free: 118.1 MB / 0.5419 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 4.551e-05/1.055, allocations: 112.2 kB / 0.8679 GB, free: 118 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.993e-06/1.055, allocations: 0 / 0.8679 GB, free: 118 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.136e-05/1.056, allocations: 45.92 kB / 0.8679 GB, free: 118 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/1.056, allocations: 2.625 kB / 0.8679 GB, free: 118 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/1.056, allocations: 3.406 kB / 0.868 GB, free: 118 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/1.056, allocations: 7.688 kB / 0.868 GB, free: 118 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.25e-05/1.056, allocations: 124.5 kB / 0.8681 GB, free: 117.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/1.056, allocations: 7.094 kB / 0.8681 GB, free: 117.8 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.292e-05/1.056, allocations: 14 kB / 0.8681 GB, free: 117.8 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/1.056, allocations: 0 / 0.8681 GB, free: 117.8 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/1.056, allocations: 0 / 0.8681 GB, free: 117.8 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001708/1.056, allocations: 0.5888 MB / 0.8687 GB, free: 117.2 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.056, allocations: 0 / 0.8687 GB, free: 117.2 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.963e-05/1.056, allocations: 68.22 kB / 0.8687 GB, free: 117.2 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 8.268e-05/1.056, allocations: 444.8 kB / 0.8692 GB, free: 116.7 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 1.732e-05/1.056, allocations: 81.02 kB / 0.8692 GB, free: 116.6 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/1.056, allocations: 0 / 0.8692 GB, free: 116.6 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.527e-05/1.056, allocations: 2.156 kB / 0.8692 GB, free: 116.6 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.02e-05/1.056, allocations: 3.781 kB / 0.8692 GB, free: 116.6 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/1.056, allocations: 0 / 0.8692 GB, free: 116.6 MB / 0.5419 GB Notification: Performance of sort global known variables: time 1.278e-05/1.056, allocations: 75.28 kB / 0.8693 GB, free: 116.6 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008339/1.057, allocations: 21.88 kB / 0.8693 GB, free: 116.6 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.0001552/1.057, allocations: 122.6 kB / 0.8695 GB, free: 116.5 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001603/1.057, allocations: 11.53 kB / 0.8695 GB, free: 116.5 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.057, allocations: 0 / 0.8695 GB, free: 116.5 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 9.139e-05/1.057, allocations: 13.91 kB / 0.8695 GB, free: 116.5 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001047/1.058, allocations: 6.5 kB / 0.8695 GB, free: 116.5 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001546/1.058, allocations: 53.69 kB / 0.8695 GB, free: 116.4 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/1.058, allocations: 0.6934 MB / 0.8702 GB, free: 115.7 MB / 0.5419 GB Notification: Performance of SimCode: time 2.61e-07/1.058, allocations: 0.6875 kB / 0.8702 GB, free: 115.7 MB / 0.5419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_dp.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_dp.pipe 2>&1)