Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.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.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",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.7848/0.7848, allocations: 141.8 MB / 149.1 MB, free: 12.58 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.001058/0.001058, allocations: 168.6 kB / 181.9 MB, free: 9.281 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.476/1.476, allocations: 221.3 MB / 436 MB, free: 1.625 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.001031/0.001031, allocations: 102.7 kB / 0.507 GB, free: 10.45 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002064/0.002063, allocations: 278.1 kB / 0.5885 GB, free: 7.301 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2301/0.2322, allocations: 89.65 MB / 0.676 GB, free: 13.55 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4762/0.7084, allocations: 82.77 MB / 0.7568 GB, free: 138.5 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1264/0.8348, allocations: 109.3 MB / 0.8636 GB, free: 28.98 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.8351, allocations: 96.66 kB / 0.8637 GB, free: 28.89 MB / 0.5575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.009352/0.8445, allocations: 3.372 MB / 0.867 GB, free: 25.5 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.8445, allocations: 9.312 kB / 0.867 GB, free: 25.5 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.8446, allocations: 7.906 kB / 0.867 GB, free: 25.49 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.404e-05/0.8447, allocations: 171 kB / 0.8672 GB, free: 25.28 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.8447, allocations: 1.188 kB / 0.8672 GB, free: 25.28 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.8447, allocations: 0 / 0.8672 GB, free: 25.28 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.122e-05/0.8448, allocations: 47.91 kB / 0.8672 GB, free: 25.23 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.628e-05/0.8449, allocations: 71.23 kB / 0.8673 GB, free: 25.16 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.8449, allocations: 4 kB / 0.8673 GB, free: 25.16 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.8449, allocations: 0 / 0.8673 GB, free: 25.16 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.8449, allocations: 0 / 0.8673 GB, free: 25.16 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003433/0.8453, allocations: 264 kB / 0.8675 GB, free: 24.86 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.689e-05/0.8454, allocations: 54.55 kB / 0.8676 GB, free: 24.8 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.393e-05/0.8454, allocations: 45.55 kB / 0.8676 GB, free: 24.75 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.8455, allocations: 1.219 kB / 0.8676 GB, free: 24.75 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.52e-05/0.8455, allocations: 30.56 kB / 0.8677 GB, free: 24.71 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.8455, allocations: 0.5625 kB / 0.8677 GB, free: 24.71 MB / 0.5575 GB Notification: Performance of matching and sorting (n=3): time 0.0002247/0.8457, allocations: 105.6 kB / 0.8678 GB, free: 24.61 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.43e-05/0.8457, allocations: 85.86 kB / 0.8679 GB, free: 24.5 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.616e-05/0.8458, allocations: 107.1 kB / 0.868 GB, free: 24.39 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.8458, allocations: 38.36 kB / 0.868 GB, free: 24.35 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 2.357e-05/0.8459, allocations: 84.05 kB / 0.8681 GB, free: 24.27 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 1.377e-05/0.8459, allocations: 9.188 kB / 0.8681 GB, free: 24.26 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-06/0.8459, allocations: 0 / 0.8681 GB, free: 24.26 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 4.887e-05/0.846, allocations: 319.5 kB / 0.8684 GB, free: 23.94 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.824e-05/0.846, allocations: 55.97 kB / 0.8684 GB, free: 23.88 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.168e-05/0.8461, allocations: 52.48 kB / 0.8685 GB, free: 23.83 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.824e-05/0.8462, allocations: 48.62 kB / 0.8685 GB, free: 23.79 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.8462, allocations: 0 / 0.8685 GB, free: 23.79 MB / 0.5575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001836/0.8464, allocations: 154 kB / 0.8687 GB, free: 23.63 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.8464, allocations: 4.531 kB / 0.8687 GB, free: 23.62 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.8464, allocations: 1 kB / 0.8687 GB, free: 23.62 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.8464, allocations: 0 / 0.8687 GB, free: 23.62 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.417e-05/0.8465, allocations: 4.5 kB / 0.8687 GB, free: 23.62 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.8465, allocations: 32 / 0.8687 GB, free: 23.62 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.758e-05/0.8466, allocations: 19.92 kB / 0.8687 GB, free: 23.6 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.8466, allocations: 11.91 kB / 0.8687 GB, free: 23.59 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: 1 (cubSpl.i) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 2 * 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.082e-05/0.8467, allocations: 126.7 kB / 0.8688 GB, free: 23.45 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.8467, allocations: 11.84 kB / 0.8689 GB, free: 23.44 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.24e-05/0.8467, allocations: 8 kB / 0.8689 GB, free: 23.43 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.8467, allocations: 3.938 kB / 0.8689 GB, free: 23.43 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.8467, allocations: 4.094 kB / 0.8689 GB, free: 23.42 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.8468, allocations: 3.984 kB / 0.8689 GB, free: 23.42 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.8469, allocations: 150.2 kB / 0.869 GB, free: 23.23 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.8469, allocations: 0 / 0.869 GB, free: 23.23 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.976e-05/0.8469, allocations: 7.984 kB / 0.869 GB, free: 23.23 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.8469, allocations: 0 / 0.869 GB, free: 23.23 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.8469, allocations: 7.906 kB / 0.869 GB, free: 23.22 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.8469, allocations: 0 / 0.869 GB, free: 23.22 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.8469, allocations: 0 / 0.869 GB, free: 23.22 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001578/0.8471, allocations: 211.4 kB / 0.8692 GB, free: 23 MB / 0.5575 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001925/0.8473, allocations: 0.574 MB / 0.8698 GB, free: 22.4 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.656e-05/0.8473, allocations: 77.11 kB / 0.8699 GB, free: 22.31 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.8474, allocations: 11.89 kB / 0.8699 GB, free: 22.3 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.81e-05/0.8474, allocations: 8.062 kB / 0.8699 GB, free: 22.29 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.43e-05/0.8475, allocations: 7.984 kB / 0.8699 GB, free: 22.28 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.8475, allocations: 64 / 0.8699 GB, free: 22.28 MB / 0.5575 GB Notification: Performance of sort global known variables: time 3.263e-05/0.8476, allocations: 96.81 kB / 0.87 GB, free: 22.19 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0008553/0.8484, allocations: 67.86 kB / 0.87 GB, free: 22.12 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: 1 (cubSpl.i) * Number of discrete states: 1 (cubSpl.i) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0002513/0.8487, allocations: 163.2 kB / 0.8702 GB, free: 21.95 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0001701/0.8489, allocations: 151.4 kB / 0.8703 GB, free: 21.79 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.8489, allocations: 7.938 kB / 0.8704 GB, free: 21.79 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 6.322e-05/0.8489, allocations: 77.61 kB / 0.8704 GB, free: 21.7 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.8491, allocations: 5.562 kB / 0.8704 GB, free: 21.7 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002536/0.8493, allocations: 115.8 kB / 0.8705 GB, free: 21.56 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.8495, allocations: 0.7032 MB / 0.8712 GB, free: 20.84 MB / 0.5575 GB Notification: Performance of SimCode: time 2.7e-07/0.8495, allocations: 0 / 0.8712 GB, free: 20.84 MB / 0.5575 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)