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.005519/0.005519, allocations: 98.97 kB / 15.73 MB, free: 6.004 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.001371/0.001372, allocations: 192.8 kB / 16.67 MB, free: 5.93 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.211/1.211, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002068/0.002068, allocations: 275.8 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8549/0.8549, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 95.84 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3926/0.3944, allocations: 86.98 MB / 0.7659 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002535/0.397, allocations: 1.41 MB / 0.7673 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001271/0.3983, allocations: 0.7818 MB / 0.7681 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.592e-05/0.3984, allocations: 0 / 0.7681 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 7.021e-05/0.3984, allocations: 3.938 kB / 0.7681 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.971e-05/0.3985, allocations: 8 kB / 0.7681 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006323/0.3992, allocations: 167.4 kB / 0.7682 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.3993, allocations: 51.84 kB / 0.7683 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 7.479e-05/0.3994, allocations: 11.98 kB / 0.7683 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.931e-05/0.3994, allocations: 19.98 kB / 0.7683 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.486e-05/0.3994, allocations: 15.92 kB / 0.7683 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.352e-05/0.3995, allocations: 4 kB / 0.7683 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003127/0.3998, allocations: 207.7 kB / 0.7685 GB, free: 1.16 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.439e-05/0.3998, allocations: 15.91 kB / 0.7685 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.876e-05/0.3999, allocations: 19.94 kB / 0.7686 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.4002, allocations: 188.8 kB / 0.7687 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4002, allocations: 3.938 kB / 0.7687 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4002, allocations: 0 / 0.7687 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.4002, allocations: 4 kB / 0.7687 GB, free: 0.9375 MB / 0.5294 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.0004943/0.4007, allocations: 434.4 kB / 0.7692 GB, free: 464 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.4007, allocations: 8.031 kB / 0.7692 GB, free: 456 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.068e-05/0.4008, allocations: 38.73 kB / 0.7692 GB, free: 408 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.263e-05/0.4008, allocations: 4.891 kB / 0.7692 GB, free: 404 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.4009, allocations: 164.4 kB / 0.7694 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.401, allocations: 384 / 0.7694 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.401, allocations: 8.375 kB / 0.7694 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.4012, allocations: 89.77 kB / 0.7695 GB, free: 96 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.4012, allocations: 0 / 0.7695 GB, free: 96 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.4012, allocations: 4 kB / 0.7695 GB, free: 92 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.4012, allocations: 0 / 0.7695 GB, free: 92 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001077/0.4013, allocations: 47.91 kB / 0.7695 GB, free: 44 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003981/0.4017, allocations: 280.8 kB / 0.7698 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001113/0.4019, allocations: 62.55 kB / 0.7698 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.038e-05/0.402, allocations: 44.92 kB / 0.7699 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.402, allocations: 0 / 0.7699 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.402, allocations: 38.55 kB / 0.7699 GB, free: 15.55 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.402, allocations: 0 / 0.7699 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0003568/0.4024, allocations: 179.3 kB / 0.7701 GB, free: 15.37 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.4024, allocations: 85.05 kB / 0.7702 GB, free: 15.27 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.42e-05/0.4025, allocations: 129.8 kB / 0.7703 GB, free: 15.13 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.4025, allocations: 29.7 kB / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.229e-05/0.4026, allocations: 84.14 kB / 0.7704 GB, free: 15.01 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.4026, allocations: 15.94 kB / 0.7704 GB, free: 14.99 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.801e-05/0.4027, allocations: 13.72 kB / 0.7704 GB, free: 14.97 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.893e-05/0.4028, allocations: 322.8 kB / 0.7707 GB, free: 14.65 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.516e-05/0.4029, allocations: 59.95 kB / 0.7708 GB, free: 14.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.343e-05/0.4029, allocations: 55.97 kB / 0.7708 GB, free: 14.54 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.4032, allocations: 197.8 kB / 0.771 GB, free: 14.32 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4032, allocations: 0 / 0.771 GB, free: 14.32 MB / 0.545 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002574/0.4034, allocations: 221 kB / 0.7712 GB, free: 14.09 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.4035, allocations: 59.41 kB / 0.7713 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4035, allocations: 0 / 0.7713 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.4035, allocations: 0 / 0.7713 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.463e-05/0.4036, allocations: 7.984 kB / 0.7713 GB, free: 14.01 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.4036, allocations: 3.938 kB / 0.7713 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.611e-05/0.4036, allocations: 15.94 kB / 0.7713 GB, free: 13.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.4037, allocations: 4 kB / 0.7713 GB, free: 13.98 MB / 0.545 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 9.733e-05/0.4038, allocations: 157.9 kB / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/0.4038, allocations: 7.953 kB / 0.7715 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.9e-05/0.4038, allocations: 3.906 kB / 0.7715 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.4038, allocations: 0 / 0.7715 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.4038, allocations: 0 / 0.7715 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.4038, allocations: 0 / 0.7715 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.404, allocations: 177.6 kB / 0.7717 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.404, allocations: 4.062 kB / 0.7717 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.033e-05/0.404, allocations: 15.92 kB / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.404, allocations: 0 / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.4041, allocations: 0 / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4041, allocations: 0 / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.4041, allocations: 0 / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002436/0.4043, allocations: 253.1 kB / 0.7719 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.25e-05/0.4044, allocations: 85.33 kB / 0.772 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.4044, allocations: 4 kB / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.882e-05/0.4045, allocations: 7.984 kB / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.4046, allocations: 7.969 kB / 0.772 GB, free: 13.17 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.4046, allocations: 4 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.308e-05/0.4046, allocations: 99.7 kB / 0.7721 GB, free: 13.07 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4046, allocations: 0 / 0.7721 GB, free: 13.07 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003012/0.405, allocations: 55.92 kB / 0.7722 GB, free: 13.01 MB / 0.545 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.0006379/0.4056, allocations: 0.8388 MB / 0.773 GB, free: 12.13 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002847/0.4059, allocations: 230.7 kB / 0.7732 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4059, allocations: 0 / 0.7732 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.406, allocations: 107.3 kB / 0.7733 GB, free: 11.76 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.4062, allocations: 13.84 kB / 0.7733 GB, free: 11.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.4078, allocations: 1.755 MB / 0.775 GB, free: 9.906 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002029/0.408, allocations: 0.6885 MB / 0.7757 GB, free: 9.191 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.977e-05/0.408, allocations: 4 kB / 0.7757 GB, free: 9.188 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.868e-05/0.4081, allocations: 15.38 kB / 0.7757 GB, free: 9.172 MB / 0.545 GB Notification: Performance of SimCode: time 3.2e-07/0.4081, allocations: 0 / 0.7757 GB, free: 9.172 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01825/0.4263, allocations: 2.834 MB / 0.7785 GB, free: 6.52 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.142/7.568, allocations: 11.06 kB / 0.7785 GB, free: 6.512 MB / 0.545 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)