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.001098/0.001098, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001076/0.001075, allocations: 191.4 kB / 16.14 MB, free: 6.707 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.12/1.12, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001833/0.001833, allocations: 290.4 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8069/0.8069, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 88.48 kB / 0.5946 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1138, allocations: 86.99 MB / 0.6796 GB, free: 1.039 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002094/0.1159, allocations: 1.466 MB / 0.681 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.117, allocations: 0.8154 MB / 0.6818 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.216e-05/0.117, allocations: 4 kB / 0.6818 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.292e-05/0.1171, allocations: 3.984 kB / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.929e-05/0.1171, allocations: 0.7188 kB / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004158/0.1175, allocations: 131.9 kB / 0.6819 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.364e-05/0.1176, allocations: 33.45 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.228e-05/0.1177, allocations: 11.92 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.968e-05/0.1177, allocations: 19.92 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.062e-05/0.1178, allocations: 19.92 kB / 0.682 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.1178, allocations: 0 / 0.682 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002528/0.118, allocations: 195.7 kB / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/0.1181, allocations: 7.984 kB / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.1181, allocations: 19.86 kB / 0.6822 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000219/0.1183, allocations: 179.6 kB / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.1184, allocations: 0 / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.1184, allocations: 0 / 0.6824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.1184, allocations: 0 / 0.6824 GB, free: 14.14 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.0003882/0.1188, allocations: 442.7 kB / 0.6828 GB, free: 13.65 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.1188, allocations: 12.03 kB / 0.6828 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.664e-05/0.1188, allocations: 38.69 kB / 0.6829 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.571e-05/0.1189, allocations: 4.938 kB / 0.6829 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.007e-05/0.119, allocations: 164.3 kB / 0.683 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.119, allocations: 4.375 kB / 0.683 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.119, allocations: 384 / 0.683 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.1191, allocations: 77.78 kB / 0.6831 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.1192, allocations: 7.938 kB / 0.6831 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.1192, allocations: 8 kB / 0.6831 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-06/0.1192, allocations: 0 / 0.6831 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.674e-05/0.1193, allocations: 43.97 kB / 0.6832 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003176/0.1196, allocations: 280.8 kB / 0.6834 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.704e-05/0.1197, allocations: 58.53 kB / 0.6835 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.533e-05/0.1198, allocations: 48.91 kB / 0.6835 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.734e-06/0.1198, allocations: 4 kB / 0.6835 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.1198, allocations: 34.5 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1198, allocations: 0 / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003179/0.1202, allocations: 183.2 kB / 0.6837 GB, free: 12.56 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.1202, allocations: 85.09 kB / 0.6838 GB, free: 12.46 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.593e-05/0.1203, allocations: 117.8 kB / 0.6839 GB, free: 12.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.1203, allocations: 29.73 kB / 0.684 GB, free: 12.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.589e-05/0.1204, allocations: 92.12 kB / 0.684 GB, free: 12.21 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.252e-05/0.1204, allocations: 7.906 kB / 0.6841 GB, free: 12.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.733e-05/0.1204, allocations: 21.72 kB / 0.6841 GB, free: 12.17 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.812e-05/0.1205, allocations: 322.7 kB / 0.6844 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.451e-05/0.1206, allocations: 55.97 kB / 0.6844 GB, free: 11.79 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.386e-05/0.1207, allocations: 63.89 kB / 0.6845 GB, free: 11.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.1209, allocations: 202 kB / 0.6847 GB, free: 11.51 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1209, allocations: 0 / 0.6847 GB, free: 11.51 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002503/0.1212, allocations: 216.9 kB / 0.6849 GB, free: 11.28 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.005e-05/0.1212, allocations: 63.34 kB / 0.685 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.1212, allocations: 0 / 0.685 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.1213, allocations: 7.984 kB / 0.685 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.529e-05/0.1213, allocations: 0 / 0.685 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/0.1213, allocations: 0 / 0.685 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.088e-05/0.1214, allocations: 8 kB / 0.685 GB, free: 11.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-06/0.1214, allocations: 0 / 0.685 GB, free: 11.19 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 0.0001337/0.1215, allocations: 156.8 kB / 0.6851 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.1216, allocations: 11.84 kB / 0.6851 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.895e-05/0.1216, allocations: 3.906 kB / 0.6851 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1216, allocations: 0 / 0.6851 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1216, allocations: 3.984 kB / 0.6851 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-06/0.1216, allocations: 4 kB / 0.6851 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.1218, allocations: 169.6 kB / 0.6853 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1218, allocations: 3.984 kB / 0.6853 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.099e-05/0.1218, allocations: 4 kB / 0.6853 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1218, allocations: 4 kB / 0.6853 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.1219, allocations: 4 kB / 0.6853 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1219, allocations: 0 / 0.6853 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1219, allocations: 0 / 0.6853 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002354/0.1221, allocations: 245.1 kB / 0.6856 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/0.1221, allocations: 84.95 kB / 0.6856 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.1222, allocations: 7.984 kB / 0.6856 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.489e-05/0.1222, allocations: 8.031 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.97e-05/0.1223, allocations: 7.984 kB / 0.6857 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.1223, allocations: 8 kB / 0.6857 GB, free: 10.37 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.212e-05/0.1224, allocations: 99.64 kB / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1224, allocations: 0 / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003322/0.1227, allocations: 60 kB / 0.6858 GB, free: 10.21 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.0005884/0.1233, allocations: 0.835 MB / 0.6866 GB, free: 9.348 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000274/0.1236, allocations: 242.7 kB / 0.6869 GB, free: 9.086 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1236, allocations: 0 / 0.6869 GB, free: 9.086 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.1237, allocations: 107.3 kB / 0.687 GB, free: 8.969 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.1239, allocations: 4.266 kB / 0.687 GB, free: 8.965 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001484/0.1254, allocations: 1.754 MB / 0.6887 GB, free: 7.121 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.1256, allocations: 0.6887 MB / 0.6894 GB, free: 6.406 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.198e-05/0.1257, allocations: 0 / 0.6894 GB, free: 6.406 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.602e-05/0.1257, allocations: 15.44 kB / 0.6894 GB, free: 6.391 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1257, allocations: 3.938 kB / 0.6894 GB, free: 6.387 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.466/5.592, allocations: 2.606 MB / 0.6919 GB, free: 3.969 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/5.592, allocations: 250.3 kB / 0.6922 GB, free: 3.715 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.934/7.526, allocations: 4.219 kB / 0.6922 GB, free: 3.715 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)