Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.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.InverseFlowFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions",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.7314/0.7314, allocations: 141.8 MB / 149.1 MB, free: 3.844 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.001151/0.001151, allocations: 185.9 kB / 181.9 MB, free: 15.55 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.336/1.336, allocations: 221.3 MB / 436 MB, free: 8.742 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.0009606/0.0009605, allocations: 94.53 kB / 0.507 GB, free: 24.25 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002015/0.002015, allocations: 273.4 kB / 0.5884 GB, free: 11.75 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1892/0.1913, allocations: 89.64 MB / 0.676 GB, free: 2.02 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4357/0.6269, allocations: 82.76 MB / 0.7568 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1191/0.7461, allocations: 109.6 MB / 0.8638 GB, free: 2.543 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.7464, allocations: 83.92 kB / 0.8639 GB, free: 2.465 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.01598/0.7624, allocations: 5.39 MB / 0.8692 GB, free: 13.07 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.7625, allocations: 8 kB / 0.8692 GB, free: 13.06 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.315e-05/0.7625, allocations: 0.8438 kB / 0.8692 GB, free: 13.06 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.7627, allocations: 171 kB / 0.8693 GB, free: 12.85 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.7627, allocations: 0.5312 kB / 0.8693 GB, free: 12.85 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.7627, allocations: 0.75 kB / 0.8693 GB, free: 12.85 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.199e-05/0.7628, allocations: 11.98 kB / 0.8694 GB, free: 12.84 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.33e-05/0.7629, allocations: 38.98 kB / 0.8694 GB, free: 12.8 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.7629, allocations: 0 / 0.8694 GB, free: 12.8 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.7629, allocations: 3.984 kB / 0.8694 GB, free: 12.79 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.84e-06/0.7629, allocations: 1.281 kB / 0.8694 GB, free: 12.79 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000306/0.7632, allocations: 230.6 kB / 0.8696 GB, free: 12.53 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.7634, allocations: 42.62 kB / 0.8697 GB, free: 12.48 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.354e-05/0.7635, allocations: 13.52 kB / 0.8697 GB, free: 12.46 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.7635, allocations: 4.844 kB / 0.8697 GB, free: 12.46 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.7635, allocations: 35.3 kB / 0.8697 GB, free: 12.42 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=4): time 1.743e-06/0.7635, allocations: 0.5312 kB / 0.8697 GB, free: 12.42 MB / 0.5419 GB Notification: Performance of matching and sorting (n=4): time 0.0001475/0.7637, allocations: 45.61 kB / 0.8698 GB, free: 12.37 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.7637, allocations: 56.47 kB / 0.8698 GB, free: 12.3 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.584e-05/0.7638, allocations: 108.8 kB / 0.8699 GB, free: 12.19 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.7638, allocations: 26.27 kB / 0.8699 GB, free: 12.16 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.267e-05/0.7639, allocations: 81.05 kB / 0.87 GB, free: 12.07 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 1.045e-05/0.7639, allocations: 11.81 kB / 0.87 GB, free: 12.06 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-06/0.7639, allocations: 4 kB / 0.87 GB, free: 12.06 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 8.085e-05/0.764, allocations: 314.8 kB / 0.8703 GB, free: 11.74 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.718e-05/0.764, allocations: 4 kB / 0.8703 GB, free: 11.74 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.81e-05/0.764, allocations: 25.7 kB / 0.8704 GB, free: 11.71 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.261e-05/0.7641, allocations: 4 kB / 0.8704 GB, free: 11.7 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.7641, allocations: 0 / 0.8704 GB, free: 11.7 MB / 0.5419 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.857e-05/0.7642, allocations: 57.53 kB / 0.8704 GB, free: 11.64 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.7642, allocations: 8.031 kB / 0.8704 GB, free: 11.63 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.7642, allocations: 0 / 0.8704 GB, free: 11.63 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.7642, allocations: 4 kB / 0.8704 GB, free: 11.63 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.732e-05/0.7643, allocations: 4 kB / 0.8704 GB, free: 11.62 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.7643, allocations: 10.61 kB / 0.8704 GB, free: 11.62 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.6e-05/0.7643, allocations: 288 / 0.8704 GB, free: 11.62 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.946e-06/0.7643, allocations: 7.906 kB / 0.8704 GB, free: 11.61 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 6.103e-05/0.7644, allocations: 105 kB / 0.8705 GB, free: 11.5 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.7644, allocations: 0 / 0.8705 GB, free: 11.5 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001372/0.7646, allocations: 65.3 kB / 0.8706 GB, free: 11.43 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.7646, allocations: 3.906 kB / 0.8706 GB, free: 11.43 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.7646, allocations: 0 / 0.8706 GB, free: 11.43 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.7646, allocations: 0.9375 kB / 0.8706 GB, free: 11.43 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001237/0.7647, allocations: 134.2 kB / 0.8707 GB, free: 11.26 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.7647, allocations: 0 / 0.8707 GB, free: 11.26 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.976e-05/0.7648, allocations: 12.11 kB / 0.8708 GB, free: 11.25 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.7648, allocations: 4 kB / 0.8708 GB, free: 11.24 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.7648, allocations: 0 / 0.8708 GB, free: 11.24 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.7648, allocations: 4 kB / 0.8708 GB, free: 11.24 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.7648, allocations: 3.906 kB / 0.8708 GB, free: 11.23 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001069/0.7649, allocations: 143.5 kB / 0.8709 GB, free: 11.08 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000198/0.7651, allocations: 0.5154 MB / 0.8714 GB, free: 10.54 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.865e-05/0.7652, allocations: 83.2 kB / 0.8715 GB, free: 10.45 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.7652, allocations: 7.906 kB / 0.8715 GB, free: 10.44 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.359e-05/0.7653, allocations: 4 kB / 0.8715 GB, free: 10.43 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.402e-05/0.7653, allocations: 7.922 kB / 0.8715 GB, free: 10.43 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.7653, allocations: 0 / 0.8715 GB, free: 10.43 MB / 0.5419 GB Notification: Performance of sort global known variables: time 3.102e-05/0.7653, allocations: 79.28 kB / 0.8716 GB, free: 10.35 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008743/0.7662, allocations: 20 kB / 0.8716 GB, free: 10.33 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 (4): * Single equations (assignments): 4 * 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.0002252/0.7664, allocations: 123.2 kB / 0.8717 GB, free: 10.2 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 8.997e-05/0.7665, allocations: 27.92 kB / 0.8717 GB, free: 10.17 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7665, allocations: 0 / 0.8717 GB, free: 10.17 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 1.532e-05/0.7666, allocations: 8 kB / 0.8718 GB, free: 10.16 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.7667, allocations: 4 kB / 0.8718 GB, free: 10.16 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002254/0.767, allocations: 59.92 kB / 0.8718 GB, free: 10.07 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002674/0.7672, allocations: 0.6876 MB / 0.8725 GB, free: 9.363 MB / 0.5419 GB Notification: Performance of SimCode: time 2.7e-07/0.7672, allocations: 0 / 0.8725 GB, free: 9.363 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_InverseFlowFunctions.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.InverseFlowFunctions.pipe 2>&1)