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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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=5000,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=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 113.8 kB / 16.42 MB, free: 6.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 192.2 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.703/2.703, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 72.11 kB / 1.055 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9353/0.9369, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001975/0.9389, allocations: 0.6222 MB / 1.209 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001934/0.9408, allocations: 1.287 MB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.56e-05/0.9409, allocations: 0 / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.375e-05/0.9409, allocations: 0 / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.677e-05/0.941, allocations: 3.938 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000506/0.9415, allocations: 75.72 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.204e-05/0.9416, allocations: 23.92 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.738e-05/0.9416, allocations: 11.94 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.742e-05/0.9417, allocations: 7.984 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.842e-05/0.9418, allocations: 19.92 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.9418, allocations: 0 / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002805/0.9421, allocations: 99.88 kB / 1.211 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.713e-05/0.9421, allocations: 8 kB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.656e-05/0.9421, allocations: 7.922 kB / 1.211 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.9423, allocations: 67.86 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.9423, allocations: 0 / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.884e-06/0.9423, allocations: 0 / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.9423, allocations: 4 kB / 1.211 GB, free: 11.35 MB / 0.9356 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.000519/0.9429, allocations: 347.6 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.9429, allocations: 8.031 kB / 1.211 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.571e-05/0.943, allocations: 4.844 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.9431, allocations: 172.2 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.9431, allocations: 4.375 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.65e-05/0.9432, allocations: 8.312 kB / 1.211 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00016/0.9433, allocations: 57.98 kB / 1.211 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.9434, allocations: 7.938 kB / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.9434, allocations: 0 / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.9434, allocations: 0 / 1.211 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.507e-05/0.9435, allocations: 23.98 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002263/0.9437, allocations: 165.7 kB / 1.211 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.9439, allocations: 58.5 kB / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.005e-05/0.9439, allocations: 24.86 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005555/0.9445, allocations: 0.5622 MB / 1.212 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.9445, allocations: 34.5 kB / 1.212 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.9445, allocations: 0 / 1.212 GB, free: 9.605 MB / 0.9356 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.01927/0.9638, allocations: 4.368 MB / 1.216 GB, free: 5.082 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.9639, allocations: 51.41 kB / 1.216 GB, free: 5.02 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.769e-05/0.964, allocations: 93.86 kB / 1.216 GB, free: 4.918 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 8.066e-05/0.964, allocations: 29.7 kB / 1.217 GB, free: 4.883 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.727e-05/0.9641, allocations: 80.14 kB / 1.217 GB, free: 4.801 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.9642, allocations: 59.31 kB / 1.217 GB, free: 4.742 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000232/0.9644, allocations: 97.56 kB / 1.217 GB, free: 4.641 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.9645, allocations: 326.7 kB / 1.217 GB, free: 4.312 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004898/0.965, allocations: 307.9 kB / 1.217 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004778/0.9655, allocations: 313.6 kB / 1.218 GB, free: 3.707 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.967, allocations: 0.776 MB / 1.218 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.967, allocations: 0 / 1.218 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00143/0.9684, allocations: 0.7942 MB / 1.219 GB, free: 2.129 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.9684, allocations: 8 kB / 1.219 GB, free: 2.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.9684, allocations: 4 kB / 1.219 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.9685, allocations: 0 / 1.219 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007689/0.9692, allocations: 91.94 kB / 1.219 GB, free: 2.027 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.9693, allocations: 7.938 kB / 1.219 GB, free: 2.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004802/0.9697, allocations: 8 kB / 1.219 GB, free: 2.012 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.341e-05/0.9698, allocations: 31.98 kB / 1.219 GB, free: 1.98 MB / 0.9356 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.0002009/0.97, allocations: 121.8 kB / 1.219 GB, free: 1.852 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.603e-05/0.9701, allocations: 7.984 kB / 1.219 GB, free: 1.844 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003032/0.9732, allocations: 1.399 MB / 1.221 GB, free: 444 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.9732, allocations: 0 / 1.221 GB, free: 444 kB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.9732, allocations: 0 / 1.221 GB, free: 444 kB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.433e-05/0.9733, allocations: 96.86 kB / 1.221 GB, free: 328 kB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.567e-05/0.9734, allocations: 19.92 kB / 1.221 GB, free: 308 kB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004411/0.9738, allocations: 11.94 kB / 1.221 GB, free: 296 kB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.974, allocations: 43.97 kB / 1.221 GB, free: 252 kB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001679/0.9757, allocations: 0.9849 MB / 1.222 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00228/0.978, allocations: 1.561 MB / 1.223 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000537/0.9785, allocations: 420 kB / 1.224 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.352e-05/0.9786, allocations: 79.28 kB / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of Backend: time 5.21e-07/0.9786, allocations: 0 / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001425/0.98, allocations: 0.5614 MB / 1.224 GB, free: 12.62 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0007601/0.9808, allocations: 0.7183 MB / 1.225 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of Templates: time 0.01755/0.9983, allocations: 11.81 MB / 1.237 GB, free: 108 kB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches