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.009391/0.009391, allocations: 99.41 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.002122/0.002122, allocations: 191.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.446/1.446, 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/IDEAS 3.0.0/package.mo): time 0.8209/0.8209, allocations: 132.2 MB / 422.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 66.45 kB / 0.5809 GB, free: 23.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1454, allocations: 80.22 MB / 0.6592 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002596/0.1481, allocations: 1.421 MB / 0.6606 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1495, allocations: 0.7839 MB / 0.6614 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.135e-05/0.1495, allocations: 0 / 0.6614 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 7.589e-05/0.1496, allocations: 3.984 kB / 0.6614 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.662e-05/0.1497, allocations: 3.938 kB / 0.6614 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006287/0.1503, allocations: 175.8 kB / 0.6615 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001226/0.1505, allocations: 51.91 kB / 0.6616 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.67e-05/0.1506, allocations: 11.88 kB / 0.6616 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.456e-05/0.1506, allocations: 11.98 kB / 0.6616 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.821e-05/0.1507, allocations: 23.92 kB / 0.6616 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.1507, allocations: 4 kB / 0.6616 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003567/0.151, allocations: 203.7 kB / 0.6618 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.297e-05/0.1511, allocations: 11.94 kB / 0.6618 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.361e-05/0.1511, allocations: 11.94 kB / 0.6619 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003067/0.1514, allocations: 195.5 kB / 0.662 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1515, allocations: 0 / 0.662 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.376e-06/0.1515, allocations: 3.984 kB / 0.662 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.929e-06/0.1515, allocations: 0 / 0.662 GB, free: 7.848 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.000545/0.152, allocations: 430.5 kB / 0.6625 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.1521, allocations: 16.03 kB / 0.6625 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.347e-05/0.1521, allocations: 30.75 kB / 0.6625 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.1522, allocations: 4.938 kB / 0.6625 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.1523, allocations: 176.2 kB / 0.6627 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.1523, allocations: 4.125 kB / 0.6627 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.1524, allocations: 4 kB / 0.6627 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.1525, allocations: 73.66 kB / 0.6627 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.1526, allocations: 0 / 0.6627 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.1526, allocations: 4 kB / 0.6628 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1526, allocations: 4 kB / 0.6628 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.1527, allocations: 43.97 kB / 0.6628 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004305/0.1531, allocations: 284.8 kB / 0.6631 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.1533, allocations: 62.48 kB / 0.6631 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.057e-05/0.1534, allocations: 48.84 kB / 0.6632 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.1534, allocations: 4 kB / 0.6632 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.1534, allocations: 34.56 kB / 0.6632 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.203e-06/0.1535, allocations: 0 / 0.6632 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004149/0.1539, allocations: 183.2 kB / 0.6634 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.462e-05/0.1539, allocations: 81.11 kB / 0.6635 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.1541, allocations: 125.8 kB / 0.6636 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.1541, allocations: 25.7 kB / 0.6636 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.708e-05/0.1542, allocations: 96.12 kB / 0.6637 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.1542, allocations: 7.938 kB / 0.6637 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.814e-05/0.1542, allocations: 21.72 kB / 0.6637 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1544, allocations: 318.8 kB / 0.664 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.1545, allocations: 55.97 kB / 0.6641 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.1546, allocations: 63.95 kB / 0.6641 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.1549, allocations: 189.9 kB / 0.6643 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1549, allocations: 4 kB / 0.6643 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003191/0.1552, allocations: 224.9 kB / 0.6645 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.749e-05/0.1553, allocations: 63.39 kB / 0.6646 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.1553, allocations: 0 / 0.6646 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.1553, allocations: 0 / 0.6646 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.903e-05/0.1554, allocations: 4 kB / 0.6646 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1554, allocations: 3.984 kB / 0.6646 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.299e-05/0.1555, allocations: 15.88 kB / 0.6646 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.1555, allocations: 7.938 kB / 0.6646 GB, free: 4.887 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 0.0001308/0.1556, allocations: 144.4 kB / 0.6648 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.626e-05/0.1556, allocations: 4 kB / 0.6648 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.451e-05/0.1557, allocations: 15.95 kB / 0.6648 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1557, allocations: 4.234 kB / 0.6648 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1557, allocations: 0 / 0.6648 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1557, allocations: 3.984 kB / 0.6648 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.1559, allocations: 173.5 kB / 0.665 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1559, allocations: 0 / 0.665 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.821e-05/0.156, allocations: 7.938 kB / 0.665 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.156, allocations: 0 / 0.665 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.156, allocations: 12 kB / 0.665 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.156, allocations: 0 / 0.665 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.156, allocations: 0 / 0.665 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003229/0.1563, allocations: 245.1 kB / 0.6652 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.988e-05/0.1564, allocations: 89.05 kB / 0.6653 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.1564, allocations: 0 / 0.6653 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.014e-05/0.1565, allocations: 4 kB / 0.6653 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.225e-05/0.1566, allocations: 16.02 kB / 0.6653 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-06/0.1566, allocations: 0 / 0.6653 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.159e-05/0.1567, allocations: 101.9 kB / 0.6654 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1567, allocations: 0 / 0.6654 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003283/0.157, allocations: 59.88 kB / 0.6655 GB, free: 3.91 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.0007995/0.1578, allocations: 0.8273 MB / 0.6663 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003796/0.1582, allocations: 242.7 kB / 0.6665 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1582, allocations: 0 / 0.6665 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.1584, allocations: 103.4 kB / 0.6666 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002142/0.1586, allocations: 2.812 kB / 0.6666 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.1606, allocations: 1.76 MB / 0.6683 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.1609, allocations: 0.6885 MB / 0.669 GB, free: 108 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.633e-05/0.161, allocations: 3.938 kB / 0.669 GB, free: 104 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.232e-05/0.161, allocations: 15.42 kB / 0.669 GB, free: 88 kB / 0.4981 GB Notification: Performance of SimCode: time 3.406e-06/0.161, allocations: 0 / 0.669 GB, free: 88 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.1848, allocations: 2.808 MB / 0.6718 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.905/8.089, allocations: 3.891 kB / 0.6718 GB, free: 13.44 MB / 0.5137 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)