Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_9_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_9_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.001674/0.001674, allocations: 114 kB / 16.42 MB, free: 6.445 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.001922/0.001922, allocations: 189.4 kB / 17.35 MB, free: 5.703 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.562/1.562, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.435/2.435, allocations: 390.3 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 71.89 kB / 0.9516 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.114/1.116, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002515/1.118, allocations: 0.6101 MB / 1.089 GB, free: 5.145 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002288/1.12, allocations: 1.29 MB / 1.091 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.174e-05/1.121, allocations: 0 / 1.091 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.892e-05/1.121, allocations: 0 / 1.091 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.986e-05/1.121, allocations: 0 / 1.091 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005391/1.121, allocations: 85.17 kB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.219e-05/1.121, allocations: 18.91 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.147e-05/1.121, allocations: 4.594 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.429e-05/1.121, allocations: 14.11 kB / 1.091 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.454e-05/1.121, allocations: 16.77 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/1.121, allocations: 1.094 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003667/1.122, allocations: 98.16 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.576e-05/1.122, allocations: 11.88 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.553e-05/1.122, allocations: 9.234 kB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002564/1.122, allocations: 69.3 kB / 1.091 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.557e-06/1.122, allocations: 0 / 1.091 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.574e-06/1.122, allocations: 4 kB / 1.091 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.574e-06/1.122, allocations: 1.375 kB / 1.091 GB, free: 4.074 MB / 0.8575 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.0005125/1.123, allocations: 341.7 kB / 1.091 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/1.123, allocations: 8.844 kB / 1.091 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.147e-05/1.123, allocations: 7.734 kB / 1.091 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/1.123, allocations: 169.9 kB / 1.091 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/1.123, allocations: 6.781 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.799e-05/1.123, allocations: 3.125 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/1.123, allocations: 60.62 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.776e-05/1.123, allocations: 1.062 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/1.123, allocations: 0 / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.453e-06/1.123, allocations: 1.125 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.833e-05/1.123, allocations: 22.66 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001996/1.124, allocations: 166.9 kB / 1.092 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/1.124, allocations: 61.27 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.8e-05/1.124, allocations: 39.12 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005199/1.124, allocations: 0.5561 MB / 1.092 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/1.125, allocations: 36.09 kB / 1.092 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.674e-06/1.125, allocations: 0 / 1.092 GB, free: 2.492 MB / 0.8575 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.03215/1.157, allocations: 4.372 MB / 1.097 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/1.157, allocations: 53.16 kB / 1.097 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.73e-05/1.157, allocations: 92.86 kB / 1.097 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001047/1.157, allocations: 29.7 kB / 1.097 GB, free: 468 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.031e-05/1.157, allocations: 85.7 kB / 1.097 GB, free: 380 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/1.157, allocations: 54.75 kB / 1.097 GB, free: 336 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004194/1.158, allocations: 89.98 kB / 1.097 GB, free: 312 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.893e-05/1.158, allocations: 323.1 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009455/1.159, allocations: 307.5 kB / 1.098 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009355/1.16, allocations: 312.1 kB / 1.098 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002759/1.162, allocations: 0.7799 MB / 1.099 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/1.162, allocations: 0 / 1.099 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002797/1.165, allocations: 0.7949 MB / 1.099 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/1.165, allocations: 11.19 kB / 1.099 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/1.165, allocations: 1.781 kB / 1.099 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/1.165, allocations: 1.062 kB / 1.099 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/1.167, allocations: 94.16 kB / 1.099 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/1.167, allocations: 5.188 kB / 1.099 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007605/1.167, allocations: 9.812 kB / 1.099 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/1.168, allocations: 33.72 kB / 1.1 GB, free: 15.04 MB / 0.8731 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.0003285/1.168, allocations: 125.1 kB / 1.1 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/1.168, allocations: 8.469 kB / 1.1 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005481/1.174, allocations: 1.401 MB / 1.101 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/1.174, allocations: 7.125 kB / 1.101 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.207e-06/1.174, allocations: 0 / 1.101 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/1.174, allocations: 95.22 kB / 1.101 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/1.174, allocations: 6.031 kB / 1.101 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007222/1.175, allocations: 13.56 kB / 1.101 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/1.175, allocations: 42.7 kB / 1.101 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002986/1.178, allocations: 0.9889 MB / 1.102 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004151/1.182, allocations: 1.561 MB / 1.104 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001039/1.183, allocations: 421.2 kB / 1.104 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 6.296e-05/1.183, allocations: 77.14 kB / 1.104 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of Backend: time 1.323e-06/1.183, allocations: 0 / 1.104 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002506/1.186, allocations: 0.5669 MB / 1.105 GB, free: 12.28 MB / 0.8731 GB Notification: Performance of SimCode: time 0.001254/1.187, allocations: 0.7097 MB / 1.105 GB, free: 11.65 MB / 0.8731 GB Notification: Performance of Templates: time 0.0392/1.226, allocations: 11.49 MB / 1.117 GB, free: 10.94 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches