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.001328/0.001328, allocations: 104.3 kB / 19.7 MB, free: 2.129 MB / 14.72 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.001453/0.001453, allocations: 220.6 kB / 23 MB, free: 4.938 MB / 14.72 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.592/1.592, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.218/3.218, allocations: 0.49 GB / 0.7959 GB, free: 35.43 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002049/0.002049, allocations: 69.86 kB / 1.155 GB, free: 25.16 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3762, allocations: 176.1 MB / 1.327 GB, free: 0.9492 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001913/0.3781, allocations: 0.6139 MB / 1.328 GB, free: 348 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002112/0.3802, allocations: 1.307 MB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.957e-05/0.3803, allocations: 3.938 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 1.905e-05/0.3803, allocations: 0 / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 2.473e-05/0.3803, allocations: 0 / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004783/0.3808, allocations: 88.78 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 7.155e-05/0.3809, allocations: 19.92 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.58e-05/0.3809, allocations: 4 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 2.807e-05/0.381, allocations: 15.98 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.34e-05/0.381, allocations: 19.91 kB / 1.329 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.3811, allocations: 4 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000346/0.3814, allocations: 107.9 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.751e-05/0.3814, allocations: 7.984 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.646e-05/0.3814, allocations: 11.94 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.3816, allocations: 83.7 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3816, allocations: 0 / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3816, allocations: 3.938 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.3817, allocations: 0 / 1.329 GB, free: 14.65 MB / 1.029 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.0005259/0.3822, allocations: 278.2 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3822, allocations: 12.03 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.941e-05/0.3823, allocations: 8.859 kB / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.3824, allocations: 106.5 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.3824, allocations: 384 / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.574e-05/0.3824, allocations: 12.36 kB / 1.33 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001757/0.3826, allocations: 75.7 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.3826, allocations: 7.922 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.3826, allocations: 4 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3826, allocations: 4 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.006e-05/0.3827, allocations: 23.98 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001923/0.3829, allocations: 117.2 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.3831, allocations: 54.56 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.955e-05/0.3831, allocations: 24.84 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002834/0.3834, allocations: 35.97 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.327e-05/0.3834, allocations: 42.55 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.3835, allocations: 0 / 1.33 GB, free: 13.75 MB / 1.029 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.02241/0.4059, allocations: 4.155 MB / 1.334 GB, free: 9.492 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.4059, allocations: 51.41 kB / 1.334 GB, free: 9.43 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.777e-05/0.406, allocations: 105.8 kB / 1.334 GB, free: 9.316 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.162e-05/0.4061, allocations: 25.7 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.394e-05/0.4061, allocations: 80.27 kB / 1.334 GB, free: 9.203 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.4063, allocations: 67.42 kB / 1.334 GB, free: 9.137 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002798/0.4065, allocations: 93.61 kB / 1.335 GB, free: 9.039 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.4067, allocations: 322.8 kB / 1.335 GB, free: 8.715 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005685/0.4073, allocations: 311.9 kB / 1.335 GB, free: 8.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005653/0.4078, allocations: 311.9 kB / 1.335 GB, free: 8.105 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001632/0.4095, allocations: 0.768 MB / 1.336 GB, free: 7.336 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.4095, allocations: 0 / 1.336 GB, free: 7.336 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001696/0.4112, allocations: 0.7943 MB / 1.337 GB, free: 6.535 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.4112, allocations: 9.391 kB / 1.337 GB, free: 6.527 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.4112, allocations: 0 / 1.337 GB, free: 6.527 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.4112, allocations: 4 kB / 1.337 GB, free: 6.523 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008676/0.4121, allocations: 95.89 kB / 1.337 GB, free: 6.43 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.4121, allocations: 4 kB / 1.337 GB, free: 6.426 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004963/0.4126, allocations: 4 kB / 1.337 GB, free: 6.422 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.552e-05/0.4127, allocations: 39.97 kB / 1.337 GB, free: 6.383 MB / 1.029 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.0002367/0.4129, allocations: 118.3 kB / 1.337 GB, free: 6.258 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.316e-05/0.413, allocations: 8 kB / 1.337 GB, free: 6.25 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003268/0.4163, allocations: 1.403 MB / 1.339 GB, free: 4.832 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.4163, allocations: 7.984 kB / 1.339 GB, free: 4.824 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.4163, allocations: 0 / 1.339 GB, free: 4.824 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.4163, allocations: 3.984 kB / 1.339 GB, free: 4.82 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003221/0.4195, allocations: 1.669 MB / 1.34 GB, free: 3.105 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.4195, allocations: 0 / 1.34 GB, free: 3.105 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008355/0.4204, allocations: 103.9 kB / 1.34 GB, free: 3.004 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-05/0.4204, allocations: 8.031 kB / 1.34 GB, free: 2.996 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.414e-05/0.4205, allocations: 28 kB / 1.34 GB, free: 2.969 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.4205, allocations: 0.9375 kB / 1.34 GB, free: 2.969 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/0.4205, allocations: 7.938 kB / 1.34 GB, free: 2.961 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002636/0.4231, allocations: 1.47 MB / 1.342 GB, free: 1.473 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.985e-05/0.4231, allocations: 15.88 kB / 1.342 GB, free: 1.457 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.922e-05/0.4232, allocations: 8 kB / 1.342 GB, free: 1.449 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005135/0.4237, allocations: 16 kB / 1.342 GB, free: 1.434 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.4239, allocations: 43.88 kB / 1.342 GB, free: 1.391 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.401e-05/0.424, allocations: 32 kB / 1.342 GB, free: 1.359 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.846e-05/0.424, allocations: 83.28 kB / 1.342 GB, free: 1.277 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.424, allocations: 4 kB / 1.342 GB, free: 1.273 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0006352/0.4247, allocations: 183.7 kB / 1.342 GB, free: 1.094 MB / 1.029 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.0005716/0.4253, allocations: 228.9 kB / 1.342 GB, free: 0.8633 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001346/0.4266, allocations: 0.7183 MB / 1.343 GB, free: 148 kB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4266, allocations: 3.938 kB / 1.343 GB, free: 144 kB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0006945/0.4273, allocations: 399.7 kB / 1.344 GB, free: 15.75 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/0.4276, allocations: 16 kB / 1.344 GB, free: 15.73 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003581/0.4312, allocations: 0.8043 MB / 1.344 GB, free: 14.9 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.4313, allocations: 99.47 kB / 1.344 GB, free: 14.78 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001058/0.4324, allocations: 293.5 kB / 1.345 GB, free: 14.49 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005775/0.433, allocations: 91.41 kB / 1.345 GB, free: 14.4 MB / 1.045 GB Notification: Performance of SimCode: time 1.643e-06/0.433, allocations: 0 / 1.345 GB, free: 14.4 MB / 1.045 GB Notification: Performance of Templates: time 0.01973/0.4527, allocations: 12.13 MB / 1.357 GB, free: 2.332 MB / 1.045 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=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.449626143003115]