Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 110.5 kB / 17.6 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 186.8 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 249.4 MB, free: 3.297 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.595/2.595, allocations: 443.4 MB / 0.7304 GB, free: 13.89 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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: 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_10_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_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 67.91 kB / 1.059 GB, free: 304 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3116, allocations: 160.7 MB / 1.216 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001778/0.3134, allocations: 0.6227 MB / 1.217 GB, free: 14.65 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001743/0.3152, allocations: 1.296 MB / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.012e-05/0.3152, allocations: 0 / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 8.676e-06/0.3152, allocations: 0 / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 1.85e-05/0.3152, allocations: 0 / 1.218 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.3155, allocations: 75.67 kB / 1.218 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.638e-05/0.3156, allocations: 23.97 kB / 1.218 GB, free: 13.24 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.229e-05/0.3156, allocations: 8 kB / 1.218 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.617e-05/0.3157, allocations: 15.92 kB / 1.218 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.224e-05/0.3157, allocations: 15.92 kB / 1.218 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.867e-06/0.3157, allocations: 0 / 1.218 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002086/0.3159, allocations: 99.89 kB / 1.218 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.186e-05/0.3159, allocations: 4 kB / 1.218 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.341e-05/0.316, allocations: 15.91 kB / 1.218 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.3161, allocations: 71.73 kB / 1.218 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.3161, allocations: 3.938 kB / 1.218 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3161, allocations: 0 / 1.218 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.3161, allocations: 4 kB / 1.218 GB, free: 13.01 MB / 0.9669 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.0004682/0.3166, allocations: 347.3 kB / 1.219 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.052e-05/0.3166, allocations: 8.031 kB / 1.219 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.795e-05/0.3166, allocations: 4.938 kB / 1.219 GB, free: 12.61 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.3168, allocations: 172.2 kB / 1.219 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.3168, allocations: 4.375 kB / 1.219 GB, free: 12.4 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.103e-05/0.3168, allocations: 8.328 kB / 1.219 GB, free: 12.39 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.3169, allocations: 54 kB / 1.219 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.317, allocations: 4 kB / 1.219 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.317, allocations: 4 kB / 1.219 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.317, allocations: 0 / 1.219 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.839e-05/0.317, allocations: 23.97 kB / 1.219 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001956/0.3172, allocations: 165.7 kB / 1.219 GB, free: 12.09 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.3174, allocations: 58.5 kB / 1.219 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.833e-05/0.3174, allocations: 28.83 kB / 1.219 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006182/0.318, allocations: 0.5583 MB / 1.22 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/0.3181, allocations: 38.5 kB / 1.22 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.163e-06/0.3181, allocations: 3.938 kB / 1.22 GB, free: 11.25 MB / 0.9669 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.02024/0.3383, allocations: 4.38 MB / 1.224 GB, free: 6.715 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.3384, allocations: 55.34 kB / 1.224 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.947e-05/0.3384, allocations: 93.86 kB / 1.224 GB, free: 6.547 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.088e-05/0.3385, allocations: 29.7 kB / 1.224 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.853e-05/0.3385, allocations: 84.12 kB / 1.224 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.3387, allocations: 55.55 kB / 1.224 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002587/0.3389, allocations: 89.8 kB / 1.224 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3391, allocations: 326.8 kB / 1.225 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005429/0.3396, allocations: 307.9 kB / 1.225 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005367/0.3401, allocations: 307.9 kB / 1.225 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.3417, allocations: 0.772 MB / 1.226 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3417, allocations: 4 kB / 1.226 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001655/0.3434, allocations: 0.7959 MB / 1.227 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.3434, allocations: 8 kB / 1.227 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3434, allocations: 0 / 1.227 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3434, allocations: 4 kB / 1.227 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007771/0.3442, allocations: 99.88 kB / 1.227 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.3442, allocations: 3.938 kB / 1.227 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.3447, allocations: 12 kB / 1.227 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.22e-05/0.3448, allocations: 39.97 kB / 1.227 GB, free: 3.605 MB / 0.9669 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.0001831/0.345, allocations: 117.7 kB / 1.227 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.989e-05/0.345, allocations: 7.953 kB / 1.227 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003123/0.3482, allocations: 1.392 MB / 1.229 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3482, allocations: 8 kB / 1.229 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.3482, allocations: 0 / 1.229 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.3482, allocations: 7.984 kB / 1.229 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003142/0.3513, allocations: 1.818 MB / 1.23 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3513, allocations: 0 / 1.23 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007621/0.3521, allocations: 107.9 kB / 1.23 GB, free: 72 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.3521, allocations: 4 kB / 1.23 GB, free: 68 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.846e-05/0.3522, allocations: 27.94 kB / 1.23 GB, free: 40 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.3522, allocations: 0 / 1.23 GB, free: 40 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3522, allocations: 4 kB / 1.23 GB, free: 36 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.3548, allocations: 1.47 MB / 1.232 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.972e-05/0.3549, allocations: 89 kB / 1.232 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.718e-05/0.355, allocations: 11.94 kB / 1.232 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004768/0.3554, allocations: 11.98 kB / 1.232 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/0.3556, allocations: 43.97 kB / 1.232 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.018e-05/0.3557, allocations: 31.94 kB / 1.232 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.614e-05/0.3558, allocations: 79.28 kB / 1.232 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3558, allocations: 0 / 1.232 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005775/0.3563, allocations: 179.8 kB / 1.232 GB, free: 14.09 MB / 0.9825 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.0005033/0.3568, allocations: 231.4 kB / 1.233 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001326/0.3582, allocations: 0.7183 MB / 1.233 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.3582, allocations: 0 / 1.233 GB, free: 13.13 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006673/0.3588, allocations: 403.7 kB / 1.234 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.3591, allocations: 15.94 kB / 1.234 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00326/0.3624, allocations: 0.8351 MB / 1.234 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.3628, allocations: 0.7142 MB / 1.235 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001039/0.3638, allocations: 293.5 kB / 1.235 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005452/0.3643, allocations: 91.41 kB / 1.236 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of SimCode: time 7.21e-07/0.3643, allocations: 0 / 1.236 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of Templates: time 0.01813/0.3825, allocations: 11.68 MB / 1.247 GB, free: 15.12 MB / 0.9981 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.249980460852385]