Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001028/0.001028, allocations: 81.95 kB / 20.68 MB, free: 3.816 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.001048/0.001048, allocations: 185 kB / 24.09 MB, free: 416 kB / 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.9356/0.9356, allocations: 177.1 MB / 204.5 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.846/1.846, allocations: 377.9 MB / 0.6239 GB, free: 8.41 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.8121 GB, free: 1.387 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.702e-05/2.845e-05, allocations: 2.312 kB / 0.8121 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001673/0.001701, allocations: 0.6315 MB / 0.8127 GB, free: 0.7734 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001746/0.003448, allocations: 1.336 MB / 0.814 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.274e-05/0.003481, allocations: 0.875 kB / 0.814 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 1.812e-05/0.003499, allocations: 3.938 kB / 0.814 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.033e-05/0.003519, allocations: 0 / 0.814 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003654/0.003884, allocations: 86.12 kB / 0.8141 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 5.517e-05/0.00394, allocations: 23.91 kB / 0.8141 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.891e-05/0.003979, allocations: 4 kB / 0.8141 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 4.15e-05/0.00402, allocations: 15.98 kB / 0.8141 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.744e-05/0.004087, allocations: 7.984 kB / 0.8141 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.004102, allocations: 5.516 kB / 0.8141 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002324/0.004334, allocations: 115.8 kB / 0.8142 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.315e-05/0.004347, allocations: 3.938 kB / 0.8142 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 1.838e-05/0.004366, allocations: 11.98 kB / 0.8143 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001306/0.004496, allocations: 89.56 kB / 0.8143 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.004498, allocations: 0 / 0.8143 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.81e-07/0.004499, allocations: 0 / 0.8143 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.004503, allocations: 0 / 0.8143 GB, free: 15.07 MB / 0.7761 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.0003372/0.00484, allocations: 381.1 kB / 0.8147 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.004881, allocations: 16.02 kB / 0.8147 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.901e-05/0.00491, allocations: 11.64 kB / 0.8147 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.866e-05/0.004979, allocations: 108.6 kB / 0.8148 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.004991, allocations: 12.38 kB / 0.8148 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.004e-05/0.005011, allocations: 4.375 kB / 0.8148 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.005118, allocations: 67.95 kB / 0.8149 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.005129, allocations: 4.172 kB / 0.8149 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.005136, allocations: 0.9062 kB / 0.8149 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.005145, allocations: 7.922 kB / 0.8149 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.207e-05/0.005187, allocations: 16.7 kB / 0.8149 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001184/0.005305, allocations: 109.2 kB / 0.815 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.138e-05/0.005387, allocations: 55.52 kB / 0.8151 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.146e-05/0.005408, allocations: 25.27 kB / 0.8151 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001642/0.005572, allocations: 36.59 kB / 0.8152 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.005599, allocations: 38.06 kB / 0.8152 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=8): time 9.82e-07/0.0056, allocations: 0 / 0.8152 GB, free: 14.07 MB / 0.7761 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.01008/0.01568, allocations: 5.208 MB / 0.8203 GB, free: 8.789 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/0.01571, allocations: 55.41 kB / 0.8203 GB, free: 8.723 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.039e-05/0.01578, allocations: 157.9 kB / 0.8205 GB, free: 8.551 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.344e-05/0.01583, allocations: 25.7 kB / 0.8205 GB, free: 8.52 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 3.261e-05/0.01586, allocations: 130.9 kB / 0.8206 GB, free: 8.387 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 8.562e-05/0.01595, allocations: 59.47 kB / 0.8207 GB, free: 8.328 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.0161, allocations: 103.3 kB / 0.8208 GB, free: 8.219 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.01622, allocations: 496.1 kB / 0.8213 GB, free: 7.723 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003193/0.01654, allocations: 399.9 kB / 0.8216 GB, free: 7.332 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.01689, allocations: 391.9 kB / 0.822 GB, free: 6.949 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009437/0.01783, allocations: 0.9392 MB / 0.8229 GB, free: 6.008 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.01783, allocations: 0 / 0.8229 GB, free: 6.008 MB / 0.7761 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000963/0.0188, allocations: 0.9793 MB / 0.8239 GB, free: 5.023 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.01882, allocations: 4 kB / 0.8239 GB, free: 5.02 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.01883, allocations: 4 kB / 0.8239 GB, free: 5.016 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.01884, allocations: 0 / 0.8239 GB, free: 5.016 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003832/0.01923, allocations: 95.88 kB / 0.824 GB, free: 4.922 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.01923, allocations: 0 / 0.824 GB, free: 4.922 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.01942, allocations: 12 kB / 0.824 GB, free: 4.91 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.852e-05/0.01947, allocations: 27.98 kB / 0.824 GB, free: 4.883 MB / 0.7761 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.0001617/0.01963, allocations: 160.6 kB / 0.8242 GB, free: 4.715 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.607e-05/0.01972, allocations: 19.89 kB / 0.8242 GB, free: 4.695 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.02127, allocations: 1.216 MB / 0.8254 GB, free: 3.477 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.02127, allocations: 4 kB / 0.8254 GB, free: 3.473 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.686e-06/0.02127, allocations: 4 kB / 0.8254 GB, free: 3.469 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.02128, allocations: 0 / 0.8254 GB, free: 3.469 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00186/0.02314, allocations: 1.49 MB / 0.8268 GB, free: 1.938 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.02314, allocations: 0 / 0.8268 GB, free: 1.938 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003391/0.02348, allocations: 107.9 kB / 0.827 GB, free: 1.832 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.02348, allocations: 0 / 0.827 GB, free: 1.832 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/0.02352, allocations: 28 kB / 0.827 GB, free: 1.805 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.02353, allocations: 8 kB / 0.827 GB, free: 1.797 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.02353, allocations: 3.984 kB / 0.827 GB, free: 1.793 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.02463, allocations: 1.145 MB / 0.8281 GB, free: 0.6211 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.628e-05/0.02465, allocations: 11.89 kB / 0.8281 GB, free: 0.6094 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.991e-05/0.0247, allocations: 8 kB / 0.8281 GB, free: 0.6016 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.02489, allocations: 8 kB / 0.8281 GB, free: 0.5938 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.983e-05/0.02498, allocations: 52 kB / 0.8282 GB, free: 0.543 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.567e-05/0.02503, allocations: 28 kB / 0.8282 GB, free: 0.5156 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.465e-05/0.02506, allocations: 123.2 kB / 0.8283 GB, free: 404 kB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.02506, allocations: 0 / 0.8283 GB, free: 404 kB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0004709/0.02554, allocations: 187.6 kB / 0.8285 GB, free: 216 kB / 0.7761 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.000379/0.02591, allocations: 246.7 kB / 0.8287 GB, free: 15.96 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.0006487/0.02656, allocations: 0.7531 MB / 0.8295 GB, free: 15.2 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.02657, allocations: 0 / 0.8295 GB, free: 15.2 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.0002823/0.02685, allocations: 351.4 kB / 0.8298 GB, free: 14.86 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.02707, allocations: 39.94 kB / 0.8299 GB, free: 14.82 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.02854, allocations: 0.7054 MB / 0.8305 GB, free: 14.08 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.742e-05/0.02859, allocations: 77.34 kB / 0.8306 GB, free: 13.98 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0006041/0.0292, allocations: 293.5 kB / 0.8309 GB, free: 13.7 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005133/0.02971, allocations: 166.2 kB / 0.8311 GB, free: 13.54 MB / 0.7917 GB Notification: Performance of SimCode: time 6.71e-07/0.02971, allocations: 0 / 0.8311 GB, free: 13.54 MB / 0.7917 GB Notification: Performance of Templates: time 0.01373/0.04344, allocations: 12.96 MB / 0.8437 GB, free: 0.6133 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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.057442693039775]