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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005307/0.005307, allocations: 100.9 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 192.4 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0024/0.0024, allocations: 292.6 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.131/1.131, allocations: 178.5 MB / 0.5074 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002594/0.002594, allocations: 103.8 kB / 0.6943 GB, free: 15.16 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3655, allocations: 89.12 MB / 0.7813 GB, free: 1.129 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.00202/0.3675, allocations: 1.423 MB / 0.7827 GB, free: 16 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001222/0.3688, allocations: 0.7735 MB / 0.7835 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.036e-05/0.3688, allocations: 0 / 0.7835 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.961e-05/0.3689, allocations: 7.938 kB / 0.7835 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.209e-05/0.3689, allocations: 6.453 kB / 0.7835 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000595/0.3695, allocations: 175.3 kB / 0.7837 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/0.3696, allocations: 53.5 kB / 0.7837 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 6.694e-05/0.3697, allocations: 2.375 kB / 0.7837 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.349e-05/0.3698, allocations: 14.83 kB / 0.7837 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.998e-05/0.3698, allocations: 29.5 kB / 0.7838 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.3698, allocations: 3.281 kB / 0.7838 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003192/0.3702, allocations: 200.6 kB / 0.784 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.953e-05/0.3702, allocations: 12.05 kB / 0.784 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.569e-05/0.3703, allocations: 16.97 kB / 0.784 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002742/0.3705, allocations: 196.6 kB / 0.7842 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.3705, allocations: 4 kB / 0.7842 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3705, allocations: 0 / 0.7842 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.3706, allocations: 0.7812 kB / 0.7842 GB, free: 14.99 MB / 0.5606 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.0005089/0.3711, allocations: 437.2 kB / 0.7846 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.3711, allocations: 9.719 kB / 0.7846 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.218e-05/0.3711, allocations: 32.12 kB / 0.7846 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.842e-05/0.3712, allocations: 7.672 kB / 0.7846 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001415/0.3713, allocations: 171.2 kB / 0.7848 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.3713, allocations: 1.562 kB / 0.7848 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.3714, allocations: 6.875 kB / 0.7848 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.3715, allocations: 86.56 kB / 0.7849 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-06/0.3716, allocations: 0 / 0.7849 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.797e-06/0.3716, allocations: 1.156 kB / 0.7849 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3716, allocations: 1.406 kB / 0.7849 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/0.3717, allocations: 43.66 kB / 0.7849 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003821/0.3721, allocations: 279.9 kB / 0.7852 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.3722, allocations: 60.95 kB / 0.7853 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.508e-05/0.3723, allocations: 50.34 kB / 0.7853 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.3723, allocations: 0 / 0.7853 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.3723, allocations: 35.75 kB / 0.7853 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 8.81e-07/0.3723, allocations: 0 / 0.7853 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003698/0.3727, allocations: 188.9 kB / 0.7855 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/0.3728, allocations: 84.33 kB / 0.7856 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.592e-05/0.3729, allocations: 118 kB / 0.7857 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.3729, allocations: 26.77 kB / 0.7857 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/0.373, allocations: 90.25 kB / 0.7858 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.373, allocations: 6.266 kB / 0.7858 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.397e-05/0.373, allocations: 20.59 kB / 0.7859 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.3732, allocations: 325.1 kB / 0.7862 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.3733, allocations: 59.91 kB / 0.7862 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.397e-05/0.3734, allocations: 60.52 kB / 0.7863 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/0.3736, allocations: 197.5 kB / 0.7865 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3736, allocations: 1.219 kB / 0.7865 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002802/0.3739, allocations: 216.5 kB / 0.7867 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.232e-05/0.374, allocations: 64.45 kB / 0.7867 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.374, allocations: 0 / 0.7867 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.374, allocations: 3.938 kB / 0.7867 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.128e-05/0.3741, allocations: 7.562 kB / 0.7868 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.3741, allocations: 0 / 0.7868 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.149e-05/0.3741, allocations: 5.875 kB / 0.7868 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.3741, allocations: 1.438 kB / 0.7868 GB, free: 12.57 MB / 0.5606 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001147/0.3743, allocations: 158.8 kB / 0.7869 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.3743, allocations: 6.891 kB / 0.7869 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.061e-05/0.3743, allocations: 9.547 kB / 0.7869 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.3743, allocations: 5.453 kB / 0.7869 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3743, allocations: 0 / 0.7869 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3743, allocations: 7.984 kB / 0.7869 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.3745, allocations: 179.7 kB / 0.7871 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3745, allocations: 0 / 0.7871 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.546e-05/0.3746, allocations: 2.875 kB / 0.7871 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.3746, allocations: 0 / 0.7871 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.3746, allocations: 5.438 kB / 0.7871 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3746, allocations: 1.469 kB / 0.7871 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3746, allocations: 0 / 0.7871 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002781/0.3749, allocations: 251.1 kB / 0.7874 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.3749, allocations: 78.23 kB / 0.7874 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.375, allocations: 10.3 kB / 0.7874 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.899e-05/0.375, allocations: 3.531 kB / 0.7874 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.3751, allocations: 11.14 kB / 0.7875 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.3752, allocations: 1.094 kB / 0.7875 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.982e-05/0.3752, allocations: 95.7 kB / 0.7875 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3752, allocations: 0 / 0.7875 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003117/0.3755, allocations: 56.41 kB / 0.7876 GB, free: 11.75 MB / 0.5606 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007175/0.3763, allocations: 0.8385 MB / 0.7884 GB, free: 11 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003235/0.3766, allocations: 244.3 kB / 0.7887 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3766, allocations: 32 / 0.7887 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.3767, allocations: 107.9 kB / 0.7888 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001996/0.377, allocations: 2.156 kB / 0.7888 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.3788, allocations: 1.751 MB / 0.7905 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002942/0.3791, allocations: 0.6867 MB / 0.7911 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.505e-05/0.3791, allocations: 0 / 0.7911 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.26e-05/0.3791, allocations: 16.84 kB / 0.7912 GB, free: 8.539 MB / 0.5606 GB Notification: Performance of SimCode: time 2.31e-07/0.3791, allocations: 0 / 0.7912 GB, free: 8.539 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0241/0.4032, allocations: 2.849 MB / 0.7939 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/8.052, allocations: 8.938 kB / 0.7939 GB, free: 7.09 MB / 0.5606 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)