Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="IBPSA_latest_IBPSA_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.001081/0.001081, allocations: 101.7 kB / 16.27 MB, free: 5.93 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.001167/0.001167, allocations: 188.5 kB / 17.2 MB, free: 5.574 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.26/1.26, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7196/0.7196, allocations: 122.9 MB / 413.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.91 kB / 0.4912 GB, free: 7.336 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.303, allocations: 77.92 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002152/0.3052, allocations: 1.407 MB / 0.5687 GB, free: 31.74 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009351/0.3062, allocations: 0.7776 MB / 0.5694 GB, free: 31.21 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.906e-05/0.3062, allocations: 1.156 kB / 0.5694 GB, free: 31.21 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.795e-05/0.3063, allocations: 5.312 kB / 0.5694 GB, free: 31.21 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.773e-05/0.3063, allocations: 7.172 kB / 0.5694 GB, free: 31.21 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005118/0.3068, allocations: 171 kB / 0.5696 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.226e-05/0.3069, allocations: 49.09 kB / 0.5696 GB, free: 31.13 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.451e-05/0.307, allocations: 6.312 kB / 0.5697 GB, free: 31.13 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.934e-05/0.307, allocations: 16.28 kB / 0.5697 GB, free: 31.12 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.151e-05/0.3071, allocations: 22.8 kB / 0.5697 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.3071, allocations: 8.094 kB / 0.5697 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002772/0.3074, allocations: 194.7 kB / 0.5699 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.805e-05/0.3074, allocations: 17.17 kB / 0.5699 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.608e-05/0.3075, allocations: 18 kB / 0.5699 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002552/0.3077, allocations: 190.9 kB / 0.5701 GB, free: 30.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3078, allocations: 0.6562 kB / 0.5701 GB, free: 30.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3078, allocations: 1.094 kB / 0.5701 GB, free: 30.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.3078, allocations: 0.8438 kB / 0.5701 GB, free: 30.98 MB / 446.1 MB 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.0003377/0.3081, allocations: 435.4 kB / 0.5705 GB, free: 30.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.3082, allocations: 11.56 kB / 0.5705 GB, free: 30.54 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.019e-05/0.3082, allocations: 36.58 kB / 0.5706 GB, free: 30.49 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.514e-05/0.3082, allocations: 7.578 kB / 0.5706 GB, free: 30.49 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.437e-05/0.3083, allocations: 168.9 kB / 0.5707 GB, free: 30.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-06/0.3083, allocations: 2.25 kB / 0.5707 GB, free: 30.29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.3083, allocations: 4.719 kB / 0.5707 GB, free: 30.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001467/0.3085, allocations: 80.97 kB / 0.5708 GB, free: 30.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.3085, allocations: 2.094 kB / 0.5708 GB, free: 30.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-06/0.3085, allocations: 0 / 0.5708 GB, free: 30.24 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.3085, allocations: 1.125 kB / 0.5708 GB, free: 30.24 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.742e-05/0.3086, allocations: 54.42 kB / 0.5709 GB, free: 30.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002722/0.3089, allocations: 279.7 kB / 0.5711 GB, free: 29.94 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.433e-05/0.309, allocations: 61.67 kB / 0.5712 GB, free: 29.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.785e-05/0.3091, allocations: 47.8 kB / 0.5712 GB, free: 29.89 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.3091, allocations: 1.25 kB / 0.5712 GB, free: 29.89 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.04e-05/0.3091, allocations: 31.59 kB / 0.5713 GB, free: 29.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.083e-06/0.3091, allocations: 1.938 kB / 0.5713 GB, free: 29.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.000318/0.3094, allocations: 181 kB / 0.5714 GB, free: 29.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.352e-05/0.3095, allocations: 84.12 kB / 0.5715 GB, free: 29.67 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.639e-05/0.3095, allocations: 123.2 kB / 0.5716 GB, free: 29.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.238e-06/0.3095, allocations: 27.59 kB / 0.5717 GB, free: 29.53 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.275e-05/0.3096, allocations: 88.53 kB / 0.5718 GB, free: 29.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.3096, allocations: 10.64 kB / 0.5718 GB, free: 29.44 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-05/0.3096, allocations: 27.3 kB / 0.5718 GB, free: 29.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.647e-05/0.3097, allocations: 319.6 kB / 0.5721 GB, free: 29.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.172e-05/0.3098, allocations: 60.95 kB / 0.5722 GB, free: 29.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.369e-05/0.3099, allocations: 60.14 kB / 0.5722 GB, free: 29.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.31, allocations: 198.5 kB / 0.5724 GB, free: 28.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.31, allocations: 0 / 0.5724 GB, free: 28.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002272/0.3103, allocations: 211.2 kB / 0.5726 GB, free: 28.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.099e-05/0.3103, allocations: 65.66 kB / 0.5727 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.3103, allocations: 1.75 kB / 0.5727 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.3103, allocations: 0 / 0.5727 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.735e-05/0.3104, allocations: 11 kB / 0.5727 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.3104, allocations: 4.594 kB / 0.5727 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.31e-05/0.3105, allocations: 13.94 kB / 0.5727 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.3105, allocations: 3.141 kB / 0.5727 GB, free: 28.74 MB / 446.1 MB 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 6.114e-05/0.3105, allocations: 151.1 kB / 0.5728 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.3106, allocations: 2.875 kB / 0.5728 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.54e-05/0.3106, allocations: 6.516 kB / 0.5729 GB, free: 28.58 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3106, allocations: 1.969 kB / 0.5729 GB, free: 28.58 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3106, allocations: 0.5 kB / 0.5729 GB, free: 28.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.3106, allocations: 0.6094 kB / 0.5729 GB, free: 28.58 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001099/0.3107, allocations: 174.9 kB / 0.573 GB, free: 28.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.3107, allocations: 1 kB / 0.573 GB, free: 28.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.592e-05/0.3108, allocations: 5.328 kB / 0.573 GB, free: 28.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.3108, allocations: 0 / 0.573 GB, free: 28.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.3108, allocations: 3.875 kB / 0.573 GB, free: 28.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3108, allocations: 0.6094 kB / 0.573 GB, free: 28.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3108, allocations: 0 / 0.573 GB, free: 28.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.311, allocations: 254.4 kB / 0.5733 GB, free: 28.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.538e-05/0.311, allocations: 83.05 kB / 0.5734 GB, free: 28.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.311, allocations: 1.969 kB / 0.5734 GB, free: 28.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.566e-05/0.3111, allocations: 6.734 kB / 0.5734 GB, free: 28.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.4e-05/0.3112, allocations: 14.02 kB / 0.5734 GB, free: 28.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.3112, allocations: 3.031 kB / 0.5734 GB, free: 28.08 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.61e-05/0.3112, allocations: 94.16 kB / 0.5735 GB, free: 28 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.3112, allocations: 0 / 0.5735 GB, free: 28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002842/0.3115, allocations: 63.95 kB / 0.5735 GB, free: 27.99 MB / 446.1 MB 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.0004435/0.312, allocations: 0.8286 MB / 0.5743 GB, free: 27.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002504/0.3122, allocations: 245.1 kB / 0.5746 GB, free: 27.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.3123, allocations: 0 / 0.5746 GB, free: 27.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.366e-05/0.3124, allocations: 104.5 kB / 0.5747 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001935/0.3126, allocations: 11.97 kB / 0.5747 GB, free: 27.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.3138, allocations: 1.752 MB / 0.5764 GB, free: 25.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.08e-05/0.3139, allocations: 0.6939 MB / 0.5771 GB, free: 24.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.224e-05/0.314, allocations: 1.031 kB / 0.5771 GB, free: 24.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.25e-05/0.314, allocations: 17.3 kB / 0.5771 GB, free: 24.95 MB / 446.1 MB Notification: Performance of SimCode: time 2e-07/0.314, allocations: 0 / 0.5771 GB, free: 24.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0391/0.3531, allocations: 2.789 MB / 0.5798 GB, free: 24.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.14/7.494, allocations: 10.88 kB / 0.5798 GB, free: 24.58 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > IBPSA_latest_IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)