Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009696/0.0009696, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 165 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.051/1.051, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.11/2.11, allocations: 429.5 MB / 0.6733 GB, free: 4.035 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 0.8782 GB, free: 6.266 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.771e-05/2.979e-05, allocations: 5.125 kB / 0.8782 GB, free: 6.262 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001601/0.001631, allocations: 0.6375 MB / 0.8789 GB, free: 5.641 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001655/0.003286, allocations: 1.355 MB / 0.8802 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.046e-05/0.003317, allocations: 1.344 kB / 0.8802 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.28e-05/0.003339, allocations: 0 / 0.8802 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 2.471e-05/0.003364, allocations: 3.938 kB / 0.8802 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004261/0.00379, allocations: 80.7 kB / 0.8803 GB, free: 4.195 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.521e-05/0.003855, allocations: 23.97 kB / 0.8803 GB, free: 4.172 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.827e-05/0.003904, allocations: 4.641 kB / 0.8803 GB, free: 4.168 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 3.398e-05/0.003938, allocations: 8 kB / 0.8803 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.909e-05/0.004007, allocations: 16.62 kB / 0.8803 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.541e-05/0.004022, allocations: 0 / 0.8803 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002506/0.004273, allocations: 119.4 kB / 0.8804 GB, free: 4.031 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.403e-05/0.004287, allocations: 4 kB / 0.8804 GB, free: 4.027 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.295e-05/0.00431, allocations: 11.97 kB / 0.8804 GB, free: 4.016 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.004461, allocations: 91.7 kB / 0.8805 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.004463, allocations: 0 / 0.8805 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.42e-07/0.004463, allocations: 0 / 0.8805 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.004468, allocations: 0 / 0.8805 GB, free: 3.926 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003822/0.00485, allocations: 384.4 kB / 0.8809 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.004891, allocations: 8.031 kB / 0.8809 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.806e-05/0.004929, allocations: 6.594 kB / 0.8809 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.141e-05/0.00501, allocations: 108.6 kB / 0.881 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.005023, allocations: 4.375 kB / 0.881 GB, free: 3.367 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.367e-05/0.005056, allocations: 4.375 kB / 0.881 GB, free: 3.363 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.005175, allocations: 76.92 kB / 0.8811 GB, free: 3.277 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.005188, allocations: 4.188 kB / 0.8811 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.005205, allocations: 13.36 kB / 0.8811 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.005215, allocations: 3.938 kB / 0.8811 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.298e-05/0.005268, allocations: 15.98 kB / 0.8811 GB, free: 3.242 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001359/0.005404, allocations: 125.7 kB / 0.8813 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.853e-05/0.005503, allocations: 59.03 kB / 0.8813 GB, free: 3.016 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.017e-05/0.005533, allocations: 21.28 kB / 0.8813 GB, free: 2.992 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001967/0.005729, allocations: 43.95 kB / 0.8814 GB, free: 2.949 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.005754, allocations: 43.89 kB / 0.8814 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.005755, allocations: 0 / 0.8814 GB, free: 2.898 MB / 0.8386 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.01089/0.01665, allocations: 5.534 MB / 0.8868 GB, free: 13.26 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.01669, allocations: 55.41 kB / 0.8869 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.377e-05/0.01675, allocations: 153.9 kB / 0.887 GB, free: 13.03 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.141e-05/0.0168, allocations: 33.69 kB / 0.887 GB, free: 12.99 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 2.879e-05/0.01683, allocations: 126.9 kB / 0.8872 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 7.878e-05/0.01691, allocations: 59.59 kB / 0.8872 GB, free: 12.8 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/0.01708, allocations: 103.3 kB / 0.8873 GB, free: 12.69 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.01721, allocations: 0.4884 MB / 0.8878 GB, free: 12.19 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004073/0.01762, allocations: 463.8 kB / 0.8882 GB, free: 11.74 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004044/0.01802, allocations: 462.4 kB / 0.8887 GB, free: 11.29 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.0192, allocations: 1.074 MB / 0.8897 GB, free: 10.21 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.0192, allocations: 0 / 0.8897 GB, free: 10.21 MB / 0.8542 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001182/0.02038, allocations: 1.113 MB / 0.8908 GB, free: 9.094 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.02039, allocations: 4 kB / 0.8908 GB, free: 9.09 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.0204, allocations: 4 kB / 0.8908 GB, free: 9.086 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.02042, allocations: 0 / 0.8908 GB, free: 9.086 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004023/0.02082, allocations: 99.94 kB / 0.8909 GB, free: 8.988 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.02083, allocations: 4 kB / 0.8909 GB, free: 8.984 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.02104, allocations: 4 kB / 0.8909 GB, free: 8.98 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.485e-05/0.02109, allocations: 39.97 kB / 0.891 GB, free: 8.941 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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.0001358/0.02123, allocations: 164.5 kB / 0.8911 GB, free: 8.77 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.798e-05/0.02132, allocations: 11.89 kB / 0.8911 GB, free: 8.758 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/0.02307, allocations: 1.334 MB / 0.8924 GB, free: 7.418 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.02307, allocations: 4 kB / 0.8924 GB, free: 7.414 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.02307, allocations: 0 / 0.8924 GB, free: 7.414 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.02308, allocations: 7.922 kB / 0.8925 GB, free: 7.406 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/0.02494, allocations: 1.622 MB / 0.894 GB, free: 5.738 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.02494, allocations: 3.984 kB / 0.894 GB, free: 5.734 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003788/0.02532, allocations: 107.9 kB / 0.8941 GB, free: 5.629 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.02532, allocations: 3.984 kB / 0.8941 GB, free: 5.625 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.446e-05/0.02537, allocations: 32.03 kB / 0.8942 GB, free: 5.594 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.02537, allocations: 0 / 0.8942 GB, free: 5.594 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.02537, allocations: 4 kB / 0.8942 GB, free: 5.59 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.0268, allocations: 1.337 MB / 0.8955 GB, free: 4.227 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.242e-05/0.02681, allocations: 19.84 kB / 0.8955 GB, free: 4.207 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.161e-05/0.02687, allocations: 4 kB / 0.8955 GB, free: 4.203 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.02708, allocations: 16 kB / 0.8955 GB, free: 4.188 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.442e-05/0.02717, allocations: 39.95 kB / 0.8956 GB, free: 4.148 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.778e-05/0.02722, allocations: 39.92 kB / 0.8956 GB, free: 4.109 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 2.73e-05/0.02724, allocations: 119.2 kB / 0.8957 GB, free: 3.992 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.02724, allocations: 4.125 kB / 0.8957 GB, free: 3.988 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004058/0.02765, allocations: 183.6 kB / 0.8959 GB, free: 3.809 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * 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.0003807/0.02803, allocations: 250.7 kB / 0.8961 GB, free: 3.555 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000867/0.0289, allocations: 0.8705 MB / 0.897 GB, free: 2.68 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.0289, allocations: 4 kB / 0.897 GB, free: 2.676 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003967/0.0293, allocations: 411.3 kB / 0.8974 GB, free: 2.27 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.02953, allocations: 35.98 kB / 0.8974 GB, free: 2.234 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.03124, allocations: 0.7576 MB / 0.8982 GB, free: 1.441 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.367e-05/0.03129, allocations: 77.34 kB / 0.8982 GB, free: 1.348 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.000606/0.03189, allocations: 297.5 kB / 0.8985 GB, free: 1.055 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004026/0.0323, allocations: 100.5 kB / 0.8986 GB, free: 0.957 MB / 0.8542 GB Notification: Performance of SimCode: time 5.81e-07/0.0323, allocations: 0 / 0.8986 GB, free: 0.957 MB / 0.8542 GB Notification: Performance of Templates: time 0.01159/0.04389, allocations: 12.28 MB / 0.9106 GB, free: 4.75 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.569078455679119]