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.00116/0.00116, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001186/0.001186, allocations: 192.4 kB / 16.25 MB, free: 6.625 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.186/1.186, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001891/0.001891, allocations: 286.9 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8531/0.8531, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 99.5 kB / 0.5948 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1359, allocations: 86.97 MB / 0.6797 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002273/0.1382, allocations: 1.48 MB / 0.6812 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.1393, allocations: 0.774 MB / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.399e-05/0.1394, allocations: 0 / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.41e-05/0.1394, allocations: 0 / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.899e-05/0.1395, allocations: 4.656 kB / 0.682 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00052/0.14, allocations: 160.4 kB / 0.6821 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.6e-05/0.1401, allocations: 56.53 kB / 0.6822 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.237e-05/0.1402, allocations: 4 kB / 0.6822 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.027e-05/0.1402, allocations: 19.92 kB / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.656e-05/0.1403, allocations: 11.98 kB / 0.6822 GB, free: 14.42 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.055e-05/0.1403, allocations: 7.938 kB / 0.6822 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.1405, allocations: 203.7 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.472e-05/0.1406, allocations: 7.938 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.432e-05/0.1406, allocations: 27.86 kB / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.1409, allocations: 191.6 kB / 0.6826 GB, free: 13.99 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1409, allocations: 0 / 0.6826 GB, free: 13.99 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1409, allocations: 0 / 0.6826 GB, free: 13.99 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.1409, allocations: 0 / 0.6826 GB, free: 13.99 MB / 494.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.0004281/0.1413, allocations: 430.7 kB / 0.683 GB, free: 13.51 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.1414, allocations: 8.031 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.687e-05/0.1414, allocations: 34.75 kB / 0.6831 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.5e-05/0.1414, allocations: 0.9375 kB / 0.6831 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.1415, allocations: 172.3 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.1416, allocations: 4.359 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.1416, allocations: 8.375 kB / 0.6832 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.1417, allocations: 81.73 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.1418, allocations: 0 / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.894e-06/0.1418, allocations: 3.938 kB / 0.6833 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-06/0.1418, allocations: 4 kB / 0.6833 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.825e-05/0.1419, allocations: 47.95 kB / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003394/0.1422, allocations: 276.8 kB / 0.6836 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.739e-05/0.1423, allocations: 62.48 kB / 0.6837 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.57e-05/0.1424, allocations: 44.91 kB / 0.6837 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.152e-06/0.1424, allocations: 4 kB / 0.6837 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.1425, allocations: 30.56 kB / 0.6838 GB, free: 12.62 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1425, allocations: 0 / 0.6838 GB, free: 12.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003415/0.1428, allocations: 191.2 kB / 0.684 GB, free: 12.42 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.1429, allocations: 81.11 kB / 0.684 GB, free: 12.32 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.334e-05/0.143, allocations: 121.8 kB / 0.6841 GB, free: 12.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.143, allocations: 25.7 kB / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.525e-05/0.143, allocations: 92.12 kB / 0.6843 GB, free: 12.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.1431, allocations: 3.906 kB / 0.6843 GB, free: 12.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.835e-05/0.1431, allocations: 29.64 kB / 0.6843 GB, free: 12.03 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.54e-05/0.1432, allocations: 322.8 kB / 0.6846 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.25e-05/0.1433, allocations: 60 kB / 0.6847 GB, free: 11.65 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.689e-05/0.1434, allocations: 55.95 kB / 0.6847 GB, free: 11.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.1436, allocations: 193.9 kB / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1436, allocations: 0 / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002443/0.1439, allocations: 220.9 kB / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.348e-05/0.1439, allocations: 65.58 kB / 0.6852 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1439, allocations: 4.062 kB / 0.6852 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.217e-06/0.1439, allocations: 0 / 0.6852 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.696e-05/0.144, allocations: 8 kB / 0.6852 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.144, allocations: 3.938 kB / 0.6852 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.127e-05/0.144, allocations: 7.984 kB / 0.6852 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.1441, allocations: 4 kB / 0.6852 GB, free: 11.05 MB / 494.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 9.822e-05/0.1442, allocations: 148.8 kB / 0.6853 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.674e-05/0.1442, allocations: 7.906 kB / 0.6853 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.048e-05/0.1442, allocations: 11.89 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-06/0.1442, allocations: 3.938 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1442, allocations: 4 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1442, allocations: 0 / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.1444, allocations: 181.5 kB / 0.6855 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1444, allocations: 0 / 0.6855 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.344e-05/0.1444, allocations: 0 / 0.6855 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.1444, allocations: 4 kB / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.1445, allocations: 0 / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.1445, allocations: 0 / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1445, allocations: 0 / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002564/0.1447, allocations: 253.4 kB / 0.6858 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.306e-05/0.1448, allocations: 92.94 kB / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.1448, allocations: 0 / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.218e-05/0.1449, allocations: 4 kB / 0.6859 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.206e-05/0.1449, allocations: 7.984 kB / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/0.145, allocations: 4 kB / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.586e-05/0.145, allocations: 95.27 kB / 0.686 GB, free: 10.14 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.145, allocations: 0 / 0.686 GB, free: 10.14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.1453, allocations: 60.03 kB / 0.686 GB, free: 10.08 MB / 494.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.000635/0.1459, allocations: 0.8311 MB / 0.6868 GB, free: 9.215 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000282/0.1462, allocations: 242.7 kB / 0.6871 GB, free: 8.953 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.1462, allocations: 4.031 kB / 0.6871 GB, free: 8.949 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.1463, allocations: 103.4 kB / 0.6872 GB, free: 8.836 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000196/0.1466, allocations: 6.391 kB / 0.6872 GB, free: 8.832 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001581/0.1481, allocations: 1.763 MB / 0.6889 GB, free: 6.98 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.1484, allocations: 0.6885 MB / 0.6896 GB, free: 6.266 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.301e-05/0.1484, allocations: 7.938 kB / 0.6896 GB, free: 6.258 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.1484, allocations: 13.55 kB / 0.6896 GB, free: 6.246 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1484, allocations: 0 / 0.6896 GB, free: 6.246 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2448/0.3932, allocations: 2.669 MB / 0.6922 GB, free: 3.777 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/0.3934, allocations: 250.6 kB / 0.6924 GB, free: 3.527 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.611/2.004, allocations: 0 / 0.6924 GB, free: 3.527 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)