Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="IDEAS_IDEAS_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.005096/0.005096, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001115/0.001115, allocations: 202.3 kB / 16.68 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7685/0.7685, allocations: 132.2 MB / 422.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 71.89 kB / 0.5809 GB, free: 8.055 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3962, allocations: 80.19 MB / 0.6592 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.00224/0.3985, allocations: 1.416 MB / 0.6606 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001095/0.3996, allocations: 0.7879 MB / 0.6614 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.025e-05/0.3996, allocations: 0 / 0.6614 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 6.139e-05/0.3997, allocations: 4.547 kB / 0.6614 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.484e-05/0.3998, allocations: 5.969 kB / 0.6614 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006014/0.4004, allocations: 167.6 kB / 0.6615 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.4005, allocations: 50.91 kB / 0.6616 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.777e-05/0.4006, allocations: 4.609 kB / 0.6616 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.686e-05/0.4006, allocations: 17.28 kB / 0.6616 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.802e-05/0.4007, allocations: 18.39 kB / 0.6616 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.4007, allocations: 4 kB / 0.6616 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003482/0.401, allocations: 206.7 kB / 0.6618 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.283e-05/0.4011, allocations: 10.28 kB / 0.6618 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.557e-05/0.4011, allocations: 26.81 kB / 0.6618 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002922/0.4014, allocations: 192.9 kB / 0.662 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.4014, allocations: 0 / 0.662 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4015, allocations: 0 / 0.662 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.4015, allocations: 0 / 0.662 GB, free: 8.172 MB / 0.4981 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.0004046/0.4019, allocations: 434.6 kB / 0.6624 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.4019, allocations: 9.844 kB / 0.6625 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.361e-05/0.4019, allocations: 32.5 kB / 0.6625 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.402, allocations: 7.516 kB / 0.6625 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.963e-05/0.4021, allocations: 172 kB / 0.6627 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.4021, allocations: 6.016 kB / 0.6627 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.4021, allocations: 3.062 kB / 0.6627 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001686/0.4023, allocations: 88.16 kB / 0.6628 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.4023, allocations: 3.938 kB / 0.6628 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.4023, allocations: 1.375 kB / 0.6628 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.4023, allocations: 0.6562 kB / 0.6628 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001076/0.4024, allocations: 46.09 kB / 0.6628 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003189/0.4028, allocations: 286.6 kB / 0.6631 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.4029, allocations: 60.27 kB / 0.6631 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.416e-05/0.403, allocations: 44.64 kB / 0.6632 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.403, allocations: 1.922 kB / 0.6632 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.461e-05/0.403, allocations: 39.5 kB / 0.6632 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.403, allocations: 0 / 0.6632 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003612/0.4034, allocations: 187.5 kB / 0.6634 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.4034, allocations: 78.39 kB / 0.6635 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.228e-05/0.4035, allocations: 119.4 kB / 0.6636 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.4035, allocations: 27.2 kB / 0.6636 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.91e-05/0.4035, allocations: 94.42 kB / 0.6637 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.45e-05/0.4036, allocations: 5.359 kB / 0.6637 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.795e-05/0.4036, allocations: 20.78 kB / 0.6637 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.35e-05/0.4036, allocations: 333.5 kB / 0.664 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.176e-05/0.4037, allocations: 55.78 kB / 0.6641 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.317e-05/0.4038, allocations: 57.45 kB / 0.6641 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.404, allocations: 196.4 kB / 0.6643 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.404, allocations: 0 / 0.6643 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002287/0.4043, allocations: 213.7 kB / 0.6645 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.4043, allocations: 60.81 kB / 0.6646 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.4043, allocations: 9.234 kB / 0.6646 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.4043, allocations: 0 / 0.6646 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.508e-05/0.4044, allocations: 2.688 kB / 0.6646 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.4044, allocations: 1.344 kB / 0.6646 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.463e-05/0.4044, allocations: 15.8 kB / 0.6646 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.4045, allocations: 10.31 kB / 0.6646 GB, free: 5.824 MB / 0.4981 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 7.066e-05/0.4045, allocations: 148.3 kB / 0.6648 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.794e-05/0.4046, allocations: 7.281 kB / 0.6648 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.98e-05/0.4046, allocations: 13.31 kB / 0.6648 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.4046, allocations: 3.984 kB / 0.6648 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4046, allocations: 1.375 kB / 0.6648 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.4046, allocations: 0 / 0.6648 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.4047, allocations: 178.3 kB / 0.665 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4047, allocations: 1.312 kB / 0.665 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.639e-05/0.4048, allocations: 2.531 kB / 0.665 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.4048, allocations: 0 / 0.665 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.4048, allocations: 1.25 kB / 0.665 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.4048, allocations: 5.25 kB / 0.665 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4048, allocations: 3.938 kB / 0.665 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002117/0.405, allocations: 247.1 kB / 0.6652 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.727e-05/0.4051, allocations: 86.38 kB / 0.6653 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.4051, allocations: 9.422 kB / 0.6653 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.834e-05/0.4052, allocations: 3.844 kB / 0.6653 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.4053, allocations: 7.969 kB / 0.6653 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-06/0.4053, allocations: 1.062 kB / 0.6653 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.792e-05/0.4053, allocations: 106.4 kB / 0.6654 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4053, allocations: 1.5 kB / 0.6654 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003416/0.4057, allocations: 51.38 kB / 0.6655 GB, free: 5.004 MB / 0.4981 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.0005134/0.4062, allocations: 0.8273 MB / 0.6663 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002723/0.4065, allocations: 247.7 kB / 0.6665 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4065, allocations: 1.562 kB / 0.6665 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.892e-05/0.4066, allocations: 102.5 kB / 0.6666 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000214/0.4068, allocations: 3.625 kB / 0.6666 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.4082, allocations: 1.76 MB / 0.6683 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.4084, allocations: 0.6864 MB / 0.669 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.668e-05/0.4084, allocations: 0 / 0.669 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.891e-05/0.4084, allocations: 20.62 kB / 0.669 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of SimCode: time 4.51e-07/0.4084, allocations: 1.312 kB / 0.669 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.4277, allocations: 2.803 MB / 0.6718 GB, free: 384 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.425/7.852, allocations: 13.66 kB / 0.6718 GB, free: 376 kB / 0.4981 GB (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)