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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7045/0.7045, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009974/0.0009974, allocations: 182.4 kB / 187.3 MB, free: 11.9 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.21/1.21, allocations: 221.3 MB / 441.4 MB, free: 4.641 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007944/0.0007944, allocations: 94.75 kB / 0.5124 GB, free: 24.17 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001618/0.001618, allocations: 284.5 kB / 0.5939 GB, free: 7.996 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.679e-05/2.68e-05, allocations: 4 kB / 0.6836 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3184, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.09889/0.4173, allocations: 110.1 MB / 0.8719 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.4176, allocations: 95.88 kB / 0.872 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.008895/0.4265, allocations: 3.25 MB / 0.8751 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4265, allocations: 0 / 0.8751 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.371e-06/0.4265, allocations: 0 / 0.8751 GB, free: 11.16 MB / 0.5417 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.000336/0.4269, allocations: 421.8 kB / 0.8755 GB, free: 10.69 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.4269, allocations: 8.031 kB / 0.8755 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.539e-05/0.4269, allocations: 38.56 kB / 0.8756 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.665e-05/0.427, allocations: 3.906 kB / 0.8756 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.815e-05/0.4271, allocations: 171 kB / 0.8758 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.4271, allocations: 11.95 kB / 0.8758 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.4271, allocations: 3.938 kB / 0.8758 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.4273, allocations: 69.67 kB / 0.8758 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.4273, allocations: 0 / 0.8758 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.4273, allocations: 0 / 0.8758 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.868e-06/0.4273, allocations: 0 / 0.8758 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.396e-05/0.4274, allocations: 43.98 kB / 0.8759 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003358/0.4277, allocations: 288.7 kB / 0.8762 GB, free: 9.957 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 7.913e-05/0.4278, allocations: 58.48 kB / 0.8762 GB, free: 9.891 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.515e-05/0.4279, allocations: 40.92 kB / 0.8762 GB, free: 9.848 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-06/0.4279, allocations: 0 / 0.8762 GB, free: 9.848 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.905e-05/0.4279, allocations: 34.5 kB / 0.8763 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.4279, allocations: 0 / 0.8763 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0002159/0.4281, allocations: 131.4 kB / 0.8764 GB, free: 9.664 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.4282, allocations: 89.12 kB / 0.8765 GB, free: 9.559 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.623e-05/0.4283, allocations: 116.9 kB / 0.8766 GB, free: 9.438 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.4283, allocations: 25.7 kB / 0.8766 GB, free: 9.406 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.673e-05/0.4283, allocations: 92.05 kB / 0.8767 GB, free: 9.312 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.165e-05/0.4283, allocations: 7.844 kB / 0.8767 GB, free: 9.305 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.881e-06/0.4283, allocations: 4 kB / 0.8767 GB, free: 9.301 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.256e-05/0.4284, allocations: 322.8 kB / 0.877 GB, free: 8.977 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.561e-05/0.4285, allocations: 47.98 kB / 0.8771 GB, free: 8.93 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.896e-05/0.4286, allocations: 51.97 kB / 0.8771 GB, free: 8.879 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.762e-05/0.4287, allocations: 107.4 kB / 0.8772 GB, free: 8.762 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4287, allocations: 3.938 kB / 0.8772 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002011/0.4289, allocations: 205.1 kB / 0.8774 GB, free: 8.539 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.926e-05/0.4289, allocations: 64.66 kB / 0.8775 GB, free: 8.465 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.4289, allocations: 0 / 0.8775 GB, free: 8.465 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.429, allocations: 7.984 kB / 0.8775 GB, free: 8.457 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.955e-05/0.429, allocations: 0 / 0.8775 GB, free: 8.457 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.429, allocations: 4 kB / 0.8775 GB, free: 8.453 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.358e-05/0.4291, allocations: 7.906 kB / 0.8775 GB, free: 8.445 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.4291, allocations: 8 kB / 0.8775 GB, free: 8.438 MB / 0.5417 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.98e-05/0.4292, allocations: 146.6 kB / 0.8777 GB, free: 8.281 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.4292, allocations: 4 kB / 0.8777 GB, free: 8.277 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.66e-05/0.4293, allocations: 4.031 kB / 0.8777 GB, free: 8.273 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4293, allocations: 4 kB / 0.8777 GB, free: 8.27 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.4293, allocations: 0 / 0.8777 GB, free: 8.27 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.4293, allocations: 0 / 0.8777 GB, free: 8.27 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.4294, allocations: 177.6 kB / 0.8778 GB, free: 8.047 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.4294, allocations: 0 / 0.8778 GB, free: 8.047 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.742e-05/0.4295, allocations: 8 kB / 0.8778 GB, free: 8.039 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.4295, allocations: 0 / 0.8778 GB, free: 8.039 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.4295, allocations: 7.984 kB / 0.8779 GB, free: 8.031 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.4295, allocations: 0 / 0.8779 GB, free: 8.031 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4295, allocations: 0 / 0.8779 GB, free: 8.031 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001887/0.4297, allocations: 233.1 kB / 0.8781 GB, free: 7.781 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.824e-05/0.4297, allocations: 85.06 kB / 0.8782 GB, free: 7.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.4297, allocations: 0 / 0.8782 GB, free: 7.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.859e-05/0.4298, allocations: 12.02 kB / 0.8782 GB, free: 7.668 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.335e-05/0.4299, allocations: 8 kB / 0.8782 GB, free: 7.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.4299, allocations: 7.938 kB / 0.8782 GB, free: 7.652 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.299e-05/0.4299, allocations: 95.27 kB / 0.8783 GB, free: 7.559 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.423e-06/0.43, allocations: 3.938 kB / 0.8783 GB, free: 7.555 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002725/0.4302, allocations: 75.8 kB / 0.8784 GB, free: 7.48 MB / 0.5417 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.0005432/0.4308, allocations: 0.8319 MB / 0.8792 GB, free: 6.613 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002196/0.431, allocations: 226.7 kB / 0.8794 GB, free: 6.367 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.431, allocations: 4 kB / 0.8794 GB, free: 6.363 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.967e-05/0.4311, allocations: 99.38 kB / 0.8795 GB, free: 6.254 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001163/0.4312, allocations: 3.047 kB / 0.8795 GB, free: 6.254 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003889/0.4316, allocations: 190.5 kB / 0.8797 GB, free: 6.031 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.4318, allocations: 0.6926 MB / 0.8803 GB, free: 5.312 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 1.342e-05/0.4318, allocations: 0 / 0.8803 GB, free: 5.312 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.59e-05/0.4319, allocations: 17.39 kB / 0.8804 GB, free: 5.297 MB / 0.5417 GB Notification: Performance of SimCode: time 2.31e-07/0.4319, allocations: 0 / 0.8804 GB, free: 5.297 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01147/0.4434, allocations: 2.5 MB / 0.8828 GB, free: 3.012 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001485/0.4435, allocations: 203.9 kB / 0.883 GB, free: 2.785 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.392/1.836, allocations: 0 / 0.883 GB, free: 2.785 MB / 0.5417 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)