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.00133/0.00133, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 197.6 kB / 16.53 MB, free: 6.672 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.302/1.302, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7704/0.7704, allocations: 132.2 MB / 422.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 67.67 kB / 0.5019 GB, free: 3.707 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3384, allocations: 80.19 MB / 0.5802 GB, free: 4.551 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002357/0.3408, allocations: 1.426 MB / 0.5816 GB, free: 3.551 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.3418, allocations: 0.7861 MB / 0.5824 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.596e-05/0.3419, allocations: 1.062 kB / 0.5824 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 5.562e-05/0.3419, allocations: 0.75 kB / 0.5824 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.986e-05/0.342, allocations: 5.266 kB / 0.5824 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005749/0.3426, allocations: 170.2 kB / 0.5825 GB, free: 2.961 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 9.365e-05/0.3427, allocations: 47.72 kB / 0.5826 GB, free: 2.941 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.366e-05/0.3428, allocations: 19.22 kB / 0.5826 GB, free: 2.93 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.495e-05/0.3428, allocations: 17.06 kB / 0.5826 GB, free: 2.922 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.711e-05/0.3429, allocations: 18.16 kB / 0.5826 GB, free: 2.914 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.3429, allocations: 3.5 kB / 0.5826 GB, free: 2.914 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003203/0.3432, allocations: 197 kB / 0.5828 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.303e-05/0.3432, allocations: 9.922 kB / 0.5828 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.625e-05/0.3433, allocations: 22.58 kB / 0.5829 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002793/0.3436, allocations: 185.2 kB / 0.583 GB, free: 2.797 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3436, allocations: 0 / 0.583 GB, free: 2.797 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3436, allocations: 0 / 0.583 GB, free: 2.797 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.3436, allocations: 1.438 kB / 0.583 GB, free: 2.797 MB / 430.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.00037/0.344, allocations: 441.8 kB / 0.5835 GB, free: 2.34 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.344, allocations: 9.625 kB / 0.5835 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.291e-05/0.344, allocations: 33.14 kB / 0.5835 GB, free: 2.301 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.86e-05/0.3441, allocations: 10.94 kB / 0.5835 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.103e-05/0.3442, allocations: 173.2 kB / 0.5837 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.3442, allocations: 3.234 kB / 0.5837 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.3442, allocations: 5.125 kB / 0.5837 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001686/0.3444, allocations: 73.62 kB / 0.5837 GB, free: 2.047 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.3444, allocations: 4 kB / 0.5838 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.3444, allocations: 0.7188 kB / 0.5838 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-06/0.3444, allocations: 0.875 kB / 0.5838 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/0.3445, allocations: 54.02 kB / 0.5838 GB, free: 2.027 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002995/0.3448, allocations: 282.1 kB / 0.5841 GB, free: 1.738 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.345, allocations: 60.62 kB / 0.5841 GB, free: 1.703 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.752e-05/0.345, allocations: 49.81 kB / 0.5842 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.3451, allocations: 0.5156 kB / 0.5842 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.3451, allocations: 33.11 kB / 0.5842 GB, free: 1.645 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3451, allocations: 0 / 0.5842 GB, free: 1.645 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003827/0.3455, allocations: 183.1 kB / 0.5844 GB, free: 1.555 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.3455, allocations: 79.09 kB / 0.5845 GB, free: 1.461 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.605e-05/0.3456, allocations: 130.4 kB / 0.5846 GB, free: 1.348 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.026e-05/0.3456, allocations: 26.8 kB / 0.5846 GB, free: 1.316 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.148e-05/0.3457, allocations: 87.88 kB / 0.5847 GB, free: 1.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.3457, allocations: 10.42 kB / 0.5847 GB, free: 1.223 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.143e-05/0.3457, allocations: 18.25 kB / 0.5847 GB, free: 1.207 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.527e-05/0.3458, allocations: 326.7 kB / 0.585 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.3459, allocations: 58.25 kB / 0.5851 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.932e-05/0.346, allocations: 57.5 kB / 0.5851 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.3462, allocations: 194.2 kB / 0.5853 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3462, allocations: 0 / 0.5853 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002726/0.3465, allocations: 218.4 kB / 0.5855 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.3466, allocations: 68.06 kB / 0.5856 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3466, allocations: 0.7812 kB / 0.5856 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.3466, allocations: 0 / 0.5856 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.216e-05/0.3466, allocations: 4.312 kB / 0.5856 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.3467, allocations: 1 kB / 0.5856 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.782e-05/0.3467, allocations: 18.41 kB / 0.5856 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.3467, allocations: 6.375 kB / 0.5856 GB, free: 0.5234 MB / 430.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.945e-05/0.3468, allocations: 151.5 kB / 0.5858 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.3468, allocations: 4.5 kB / 0.5858 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.739e-05/0.3469, allocations: 5.266 kB / 0.5858 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3469, allocations: 0.5625 kB / 0.5858 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3469, allocations: 1.859 kB / 0.5858 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3469, allocations: 0 / 0.5858 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.347, allocations: 173.5 kB / 0.586 GB, free: 168 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.347, allocations: 5.875 kB / 0.586 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.849e-05/0.347, allocations: 4.047 kB / 0.586 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.347, allocations: 0 / 0.586 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.3471, allocations: 2.203 kB / 0.586 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3471, allocations: 0 / 0.586 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3471, allocations: 0.9688 kB / 0.586 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002682/0.3473, allocations: 255.7 kB / 0.5862 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.762e-05/0.3474, allocations: 83.44 kB / 0.5863 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.3474, allocations: 6.406 kB / 0.5863 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.225e-05/0.3475, allocations: 5.516 kB / 0.5863 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.376e-05/0.3476, allocations: 5.688 kB / 0.5863 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.138e-06/0.3476, allocations: 4.594 kB / 0.5863 GB, free: 15.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.506e-05/0.3477, allocations: 99.7 kB / 0.5864 GB, free: 15.78 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3477, allocations: 3.938 kB / 0.5864 GB, free: 15.78 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003221/0.348, allocations: 58.44 kB / 0.5865 GB, free: 15.77 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.0006826/0.3487, allocations: 0.8333 MB / 0.5873 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003198/0.349, allocations: 238.6 kB / 0.5875 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.349, allocations: 0.625 kB / 0.5875 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.3492, allocations: 99.53 kB / 0.5876 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.3494, allocations: 15.53 kB / 0.5876 GB, free: 14.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001712/0.3511, allocations: 1.745 MB / 0.5893 GB, free: 13.42 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.3513, allocations: 0.689 MB / 0.59 GB, free: 12.72 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.219e-05/0.3514, allocations: 0 / 0.59 GB, free: 12.72 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.89e-05/0.3514, allocations: 19.06 kB / 0.59 GB, free: 12.71 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3514, allocations: 0 / 0.59 GB, free: 12.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.3701, allocations: 2.778 MB / 0.5927 GB, free: 12.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.195/7.565, allocations: 11.89 kB / 0.5927 GB, free: 12.3 MB / 446.1 MB (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)