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.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.001975/0.001975, allocations: 105.8 kB / 18.84 MB, free: 3.023 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.002508/0.002508, allocations: 191.6 kB / 22.11 MB, free: 4.223 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.528/1.528, allocations: 225.6 MB / 250.8 MB, free: 2.918 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 2.888/2.888, allocations: 495.8 MB / 0.7831 GB, free: 12.32 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.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_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 0.002375/0.002375, allocations: 67.89 kB / 1.137 GB, free: 12.18 MB / 0.92 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.9297/0.9321, allocations: 173.6 MB / 1.307 GB, free: 33.76 MB / 1.061 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001469/0.9336, allocations: 0.6184 MB / 1.307 GB, free: 33.38 MB / 1.061 GB
Notification: Performance of NFInst.instExpressions: time 0.001227/0.9348, allocations: 1.307 MB / 1.309 GB, free: 32.42 MB / 1.061 GB
Notification: Performance of NFInst.updateImplicitVariability: time 2.67e-05/0.9348, allocations: 0 / 1.309 GB, free: 32.42 MB / 1.061 GB
Notification: Performance of NFTyping.typeComponents: time 1.736e-05/0.9349, allocations: 4 kB / 1.309 GB, free: 32.41 MB / 1.061 GB
Notification: Performance of NFTyping.typeBindings: time 1.86e-05/0.9349, allocations: 3.938 kB / 1.309 GB, free: 32.41 MB / 1.061 GB
Notification: Performance of NFTyping.typeClassSections: time 0.00035/0.9352, allocations: 73.69 kB / 1.309 GB, free: 32.38 MB / 1.061 GB
Notification: Performance of NFFlatten.flatten: time 5.467e-05/0.9353, allocations: 23.39 kB / 1.309 GB, free: 32.37 MB / 1.061 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.27e-05/0.9353, allocations: 4 kB / 1.309 GB, free: 32.37 MB / 1.061 GB
Notification: Performance of NFEvalConstants.evaluate: time 1.881e-05/0.9353, allocations: 13.19 kB / 1.309 GB, free: 32.36 MB / 1.061 GB
Notification: Performance of NFSimplifyModel.simplify: time 6.581e-05/0.9354, allocations: 17.03 kB / 1.309 GB, free: 32.36 MB / 1.061 GB
Notification: Performance of NFPackage.collectConstants: time 1.24e-05/0.9354, allocations: 0 / 1.309 GB, free: 32.36 MB / 1.061 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001901/0.9356, allocations: 101.2 kB / 1.309 GB, free: 32.33 MB / 1.061 GB
Notification: Performance of NFScalarize.scalarize: time 1.616e-05/0.9356, allocations: 10.17 kB / 1.309 GB, free: 32.32 MB / 1.061 GB
Notification: Performance of NFVerifyModel.verify: time 2.153e-05/0.9357, allocations: 10.94 kB / 1.309 GB, free: 32.32 MB / 1.061 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.9358, allocations: 73.53 kB / 1.309 GB, free: 32.3 MB / 1.061 GB
Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.9358, allocations: 0 / 1.309 GB, free: 32.3 MB / 1.061 GB
Notification: Performance of FrontEnd: time 1.232e-06/0.9358, allocations: 0 / 1.309 GB, free: 32.3 MB / 1.061 GB
Notification: Performance of Transformations before backend: time 5.571e-06/0.9358, allocations: 0 / 1.309 GB, free: 32.3 MB / 1.061 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.0003939/0.9362, allocations: 276.7 kB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.9362, allocations: 10.5 kB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.347e-05/0.9363, allocations: 0.9375 kB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 6.7e-05/0.9363, allocations: 113.5 kB / 1.309 GB, free: 31.89 MB / 1.061 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.9363, allocations: 3.219 kB / 1.309 GB, free: 31.89 MB / 1.061 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.9364, allocations: 10.92 kB / 1.309 GB, free: 31.88 MB / 1.061 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.9365, allocations: 55.73 kB / 1.309 GB, free: 31.84 MB / 1.061 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.9365, allocations: 0 / 1.309 GB, free: 31.84 MB / 1.061 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.9365, allocations: 4 kB / 1.309 GB, free: 31.83 MB / 1.061 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.9365, allocations: 2.562 kB / 1.309 GB, free: 31.83 MB / 1.061 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 5.951e-05/0.9366, allocations: 24.88 kB / 1.309 GB, free: 31.83 MB / 1.061 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001306/0.9367, allocations: 134 kB / 1.31 GB, free: 31.66 MB / 1.061 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.9368, allocations: 61.02 kB / 1.31 GB, free: 31.62 MB / 1.061 GB
Notification: Performance of preOpt resolveLoops (simulation): time 3.558e-05/0.9368, allocations: 27.91 kB / 1.31 GB, free: 31.61 MB / 1.061 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002612/0.9371, allocations: 34.44 kB / 1.31 GB, free: 31.61 MB / 1.061 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.9371, allocations: 34.5 kB / 1.31 GB, free: 31.56 MB / 1.061 GB
Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.9371, allocations: 4 kB / 1.31 GB, free: 31.56 MB / 1.061 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.01924/0.9564, allocations: 4.155 MB / 1.314 GB, free: 29.99 MB / 1.061 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.9564, allocations: 58.12 kB / 1.314 GB, free: 29.93 MB / 1.061 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.218e-05/0.9564, allocations: 93.86 kB / 1.314 GB, free: 29.82 MB / 1.061 GB
Notification: Performance of collectPreVariables (initialization): time 7.01e-05/0.9565, allocations: 27.95 kB / 1.314 GB, free: 29.79 MB / 1.061 GB
Notification: Performance of collectInitialEqns (initialization): time 1.718e-05/0.9565, allocations: 91.98 kB / 1.314 GB, free: 29.7 MB / 1.061 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.9566, allocations: 55.25 kB / 1.314 GB, free: 29.66 MB / 1.061 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/0.9569, allocations: 93.25 kB / 1.314 GB, free: 29.63 MB / 1.061 GB
Notification: Performance of setup shared object (initialization): time 4.354e-05/0.9569, allocations: 322 kB / 1.315 GB, free: 29.31 MB / 1.061 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004732/0.9574, allocations: 311.7 kB / 1.315 GB, free: 29.18 MB / 1.061 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004563/0.9578, allocations: 309.6 kB / 1.315 GB, free: 29.05 MB / 1.061 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.9592, allocations: 0.7759 MB / 1.316 GB, free: 28.71 MB / 1.061 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.9592, allocations: 6.562 kB / 1.316 GB, free: 28.71 MB / 1.061 GB
Notification: Performance of matching and sorting (n=18) (initialization): time 0.001397/0.9606, allocations: 0.7965 MB / 1.317 GB, free: 28.38 MB / 1.061 GB
Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.9606, allocations: 5.25 kB / 1.317 GB, free: 28.38 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.9606, allocations: 0 / 1.317 GB, free: 28.38 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.9607, allocations: 6.625 kB / 1.317 GB, free: 28.38 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008495/0.9615, allocations: 97.06 kB / 1.317 GB, free: 28.37 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.9615, allocations: 0 / 1.317 GB, free: 28.37 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005541/0.9621, allocations: 9.562 kB / 1.317 GB, free: 28.37 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.49e-05/0.9621, allocations: 33.44 kB / 1.317 GB, free: 28.37 MB / 1.061 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.0001736/0.9623, allocations: 127 kB / 1.317 GB, free: 28.24 MB / 1.061 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.64e-05/0.9624, allocations: 6.578 kB / 1.317 GB, free: 28.23 MB / 1.061 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002635/0.965, allocations: 1.4 MB / 1.318 GB, free: 27.58 MB / 1.061 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.965, allocations: 9.75 kB / 1.318 GB, free: 27.57 MB / 1.061 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.965, allocations: 0 / 1.318 GB, free: 27.57 MB / 1.061 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.965, allocations: 2.406 kB / 1.318 GB, free: 27.57 MB / 1.061 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002506/0.9676, allocations: 1.788 MB / 1.32 GB, free: 26.56 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.9676, allocations: 0 / 1.32 GB, free: 26.56 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007976/0.9684, allocations: 102.7 kB / 1.32 GB, free: 26.55 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.9684, allocations: 5.656 kB / 1.32 GB, free: 26.55 MB / 1.061 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.009e-05/0.9684, allocations: 34.94 kB / 1.32 GB, free: 26.54 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.9684, allocations: 4.031 kB / 1.32 GB, free: 26.54 MB / 1.061 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.9684, allocations: 2.812 kB / 1.32 GB, free: 26.54 MB / 1.061 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002123/0.9706, allocations: 1.464 MB / 1.322 GB, free: 25.79 MB / 1.061 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.8e-05/0.9706, allocations: 13.36 kB / 1.322 GB, free: 25.78 MB / 1.061 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.538e-05/0.9707, allocations: 16.62 kB / 1.322 GB, free: 25.77 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.9712, allocations: 10.62 kB / 1.322 GB, free: 25.76 MB / 1.061 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.9714, allocations: 44.64 kB / 1.322 GB, free: 25.76 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.541e-05/0.9715, allocations: 30.84 kB / 1.322 GB, free: 25.75 MB / 1.061 GB
Notification: Performance of sorting global known variables: time 2.546e-05/0.9715, allocations: 76.34 kB / 1.322 GB, free: 25.68 MB / 1.061 GB
Notification: Performance of sort global known variables: time 7e-08/0.9715, allocations: 0 / 1.322 GB, free: 25.68 MB / 1.061 GB
Notification: Performance of remove unused functions: time 0.0007113/0.9722, allocations: 182.1 kB / 1.322 GB, free: 25.65 MB / 1.061 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.0005142/0.9728, allocations: 215.6 kB / 1.322 GB, free: 25.53 MB / 1.061 GB
Notification: Performance of simCode: created initialization part: time 0.001333/0.9741, allocations: 0.716 MB / 1.323 GB, free: 25.25 MB / 1.061 GB
Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.9741, allocations: 96 / 1.323 GB, free: 25.25 MB / 1.061 GB
Notification: Performance of simCode: created simulation system equations: time 0.0005947/0.9747, allocations: 408.3 kB / 1.323 GB, free: 25.07 MB / 1.061 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.975, allocations: 21.53 kB / 1.323 GB, free: 25.06 MB / 1.061 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003429/0.9784, allocations: 0.7842 MB / 1.324 GB, free: 24.7 MB / 1.061 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001239/0.9786, allocations: 0.7189 MB / 1.325 GB, free: 23.99 MB / 1.061 GB
Notification: Performance of simCode: alias equations: time 0.0009569/0.9795, allocations: 295.2 kB / 1.325 GB, free: 23.84 MB / 1.061 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005821/0.9801, allocations: 94.45 kB / 1.325 GB, free: 23.83 MB / 1.061 GB
Notification: Performance of SimCode: time 9.02e-07/0.9801, allocations: 3.938 kB / 1.325 GB, free: 23.83 MB / 1.061 GB
Notification: Performance of Templates: time 0.02225/1.002, allocations: 11.75 MB / 1.337 GB, free: 23.11 MB / 1.061 GB
"
[Timeout remaining time 299]
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  -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/jenkins/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.429882609285414]