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.0009261/0.0009261, allocations: 81.17 kB / 19.87 MB, free: 4.617 MB / 18.57 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.0009444/0.0009444, allocations: 169 kB / 23.28 MB, free: 1.219 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 0.9119/0.9119, allocations: 177.1 MB / 203.7 MB, free: 5.516 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.435/2.435, allocations: 438.1 MB / 0.682 GB, free: 14.2 MB / 0.6511 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.324e-06/2.324e-06, allocations: 0 / 0.8898 GB, free: 9.707 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.074e-05/3.306e-05, allocations: 2.312 kB / 0.8898 GB, free: 9.703 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002153/0.002186, allocations: 0.6377 MB / 0.8904 GB, free: 9.07 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.002115/0.004302, allocations: 1.342 MB / 0.8917 GB, free: 7.711 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.928e-05/0.004341, allocations: 0 / 0.8917 GB, free: 7.711 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.97e-05/0.004361, allocations: 4 kB / 0.8917 GB, free: 7.707 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 2.485e-05/0.004386, allocations: 0 / 0.8917 GB, free: 7.707 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.004856, allocations: 83.59 kB / 0.8918 GB, free: 7.625 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 6.89e-05/0.004925, allocations: 23.92 kB / 0.8918 GB, free: 7.602 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 4.603e-05/0.004971, allocations: 0 / 0.8918 GB, free: 7.602 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 5.128e-05/0.005023, allocations: 15.97 kB / 0.8919 GB, free: 7.586 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 9.284e-05/0.005115, allocations: 15.92 kB / 0.8919 GB, free: 7.57 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.005135, allocations: 4 kB / 0.8919 GB, free: 7.566 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003285/0.005463, allocations: 111.8 kB / 0.892 GB, free: 7.457 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.62e-05/0.005479, allocations: 7.984 kB / 0.892 GB, free: 7.449 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.041e-05/0.0055, allocations: 7.984 kB / 0.892 GB, free: 7.441 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001921/0.005692, allocations: 91.75 kB / 0.8921 GB, free: 7.352 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.005696, allocations: 0 / 0.8921 GB, free: 7.352 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.302e-06/0.005697, allocations: 0 / 0.8921 GB, free: 7.352 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.005702, allocations: 4 kB / 0.8921 GB, free: 7.348 MB / 0.8542 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.0004723/0.006174, allocations: 384.4 kB / 0.8925 GB, free: 6.938 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.006226, allocations: 8.625 kB / 0.8925 GB, free: 6.93 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.551e-05/0.006261, allocations: 4.938 kB / 0.8925 GB, free: 6.926 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.214e-05/0.006353, allocations: 116.6 kB / 0.8926 GB, free: 6.785 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.006366, allocations: 384 / 0.8926 GB, free: 6.785 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.006392, allocations: 12.33 kB / 0.8926 GB, free: 6.773 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.006511, allocations: 75.92 kB / 0.8927 GB, free: 6.688 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.006523, allocations: 4.188 kB / 0.8927 GB, free: 6.684 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.006531, allocations: 384 / 0.8927 GB, free: 6.684 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.006542, allocations: 7.938 kB / 0.8927 GB, free: 6.676 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.756e-05/0.00659, allocations: 15.98 kB / 0.8927 GB, free: 6.66 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001388/0.006729, allocations: 97.27 kB / 0.8928 GB, free: 6.539 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001163/0.006845, allocations: 67.03 kB / 0.8928 GB, free: 6.461 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.255e-05/0.006877, allocations: 23.69 kB / 0.8929 GB, free: 6.434 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002467/0.007124, allocations: 43.89 kB / 0.8929 GB, free: 6.391 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.007162, allocations: 41.33 kB / 0.893 GB, free: 6.34 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 1.713e-06/0.007164, allocations: 0 / 0.893 GB, free: 6.34 MB / 0.8542 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.01483/0.02199, allocations: 5.192 MB / 0.898 GB, free: 1.043 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.02202, allocations: 55.41 kB / 0.8981 GB, free: 0.9766 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.985e-05/0.0221, allocations: 153.9 kB / 0.8982 GB, free: 0.8086 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.725e-05/0.02215, allocations: 29.7 kB / 0.8982 GB, free: 0.7734 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.674e-05/0.02218, allocations: 126.9 kB / 0.8984 GB, free: 0.6445 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 8.431e-05/0.02227, allocations: 59.47 kB / 0.8984 GB, free: 0.5859 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.02243, allocations: 107.2 kB / 0.8985 GB, free: 484 kB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.02257, allocations: 496.1 kB / 0.899 GB, free: 15.98 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.02288, allocations: 399.8 kB / 0.8994 GB, free: 15.59 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.0232, allocations: 395.9 kB / 0.8998 GB, free: 15.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009029/0.0241, allocations: 0.9429 MB / 0.9007 GB, free: 14.25 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.0241, allocations: 4 kB / 0.9007 GB, free: 14.25 MB / 0.8698 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0009452/0.02505, allocations: 0.97 MB / 0.9016 GB, free: 13.27 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.02506, allocations: 4 kB / 0.9016 GB, free: 13.27 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.02507, allocations: 0.9375 kB / 0.9016 GB, free: 13.27 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.02508, allocations: 0 / 0.9016 GB, free: 13.27 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003541/0.02543, allocations: 103.8 kB / 0.9017 GB, free: 13.17 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-06/0.02544, allocations: 4 kB / 0.9017 GB, free: 13.16 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.02562, allocations: 4 kB / 0.9017 GB, free: 13.16 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.893e-05/0.02567, allocations: 35.98 kB / 0.9018 GB, free: 13.12 MB / 0.8698 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.0001368/0.02581, allocations: 160.6 kB / 0.9019 GB, free: 12.96 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.29e-05/0.0259, allocations: 11.94 kB / 0.9019 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.02741, allocations: 1.216 MB / 0.9031 GB, free: 11.72 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.02741, allocations: 4 kB / 0.9031 GB, free: 11.71 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-06/0.02742, allocations: 0 / 0.9031 GB, free: 11.71 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.02742, allocations: 4 kB / 0.9031 GB, free: 11.71 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001508/0.02893, allocations: 1.49 MB / 0.9046 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.02893, allocations: 0 / 0.9046 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.02927, allocations: 107.9 kB / 0.9047 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.02928, allocations: 4 kB / 0.9047 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.982e-05/0.02932, allocations: 24 kB / 0.9047 GB, free: 10.05 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.02932, allocations: 0 / 0.9047 GB, free: 10.05 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.02932, allocations: 4 kB / 0.9047 GB, free: 10.05 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.03043, allocations: 1.133 MB / 0.9058 GB, free: 8.887 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.501e-05/0.03045, allocations: 23.83 kB / 0.9059 GB, free: 8.863 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.0305, allocations: 16.06 kB / 0.9059 GB, free: 8.848 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.0307, allocations: 12 kB / 0.9059 GB, free: 8.836 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.181e-05/0.03078, allocations: 47.94 kB / 0.9059 GB, free: 8.789 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.662e-05/0.03082, allocations: 24 kB / 0.906 GB, free: 8.766 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.186e-05/0.03086, allocations: 119.2 kB / 0.9061 GB, free: 8.648 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6e-08/0.03086, allocations: 0 / 0.9061 GB, free: 8.648 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000413/0.03127, allocations: 187.7 kB / 0.9062 GB, free: 8.465 MB / 0.8698 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.0003708/0.03164, allocations: 246.7 kB / 0.9065 GB, free: 8.215 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0006381/0.03228, allocations: 0.7522 MB / 0.9072 GB, free: 7.461 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.03228, allocations: 0 / 0.9072 GB, free: 7.461 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003296/0.03261, allocations: 355.3 kB / 0.9076 GB, free: 7.109 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.03284, allocations: 42.56 kB / 0.9076 GB, free: 7.07 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.03433, allocations: 0.6979 MB / 0.9083 GB, free: 6.34 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.553e-05/0.03438, allocations: 73.34 kB / 0.9083 GB, free: 6.246 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0006662/0.03505, allocations: 301.5 kB / 0.9086 GB, free: 5.949 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005533/0.0356, allocations: 166.2 kB / 0.9088 GB, free: 5.785 MB / 0.8698 GB Notification: Performance of SimCode: time 8.01e-07/0.0356, allocations: 0 / 0.9088 GB, free: 5.785 MB / 0.8698 GB Notification: Performance of Templates: time 0.01271/0.04831, allocations: 12.98 MB / 0.9215 GB, free: 8.84 MB / 0.8855 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.395731912925839]