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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0007792/0.0007792, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005353/0.005353, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.408/1.408, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.622/2.622, allocations: 443.3 MB / 0.7175 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000407/0.000407, allocations: 15.31 kB / 0.8796 GB, free: 41.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3598, allocations: 155.2 MB / 1.031 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0009031/0.3608, allocations: 356.2 kB / 1.031 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001598/0.3624, allocations: 1.284 MB / 1.033 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.534e-05/0.3624, allocations: 0 / 1.033 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.455e-05/0.3624, allocations: 3.938 kB / 1.033 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.292e-05/0.3625, allocations: 0 / 1.033 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.3628, allocations: 51.89 kB / 1.033 GB, free: 2.621 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.585e-05/0.3628, allocations: 23.92 kB / 1.033 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.62e-05/0.3629, allocations: 7.984 kB / 1.033 GB, free: 2.59 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.988e-05/0.3629, allocations: 7.984 kB / 1.033 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.406e-05/0.363, allocations: 15.92 kB / 1.033 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.036e-05/0.363, allocations: 0 / 1.033 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002323/0.3632, allocations: 103.8 kB / 1.033 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.429e-05/0.3633, allocations: 7.984 kB / 1.033 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.504e-05/0.3633, allocations: 37.64 kB / 1.033 GB, free: 2.414 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.3635, allocations: 67.84 kB / 1.033 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3635, allocations: 4 kB / 1.033 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3635, allocations: 0 / 1.033 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.575e-06/0.3635, allocations: 0 / 1.033 GB, free: 2.344 MB / 0.7794 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.0004419/0.3639, allocations: 347.8 kB / 1.033 GB, free: 1.957 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.364, allocations: 8.031 kB / 1.033 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.157e-05/0.364, allocations: 8.875 kB / 1.033 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.3641, allocations: 164.4 kB / 1.034 GB, free: 1.742 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.3642, allocations: 8.312 kB / 1.034 GB, free: 1.734 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.857e-05/0.3642, allocations: 12.28 kB / 1.034 GB, free: 1.723 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.3643, allocations: 53.98 kB / 1.034 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.3643, allocations: 4 kB / 1.034 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.3643, allocations: 0 / 1.034 GB, free: 1.66 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.3644, allocations: 4 kB / 1.034 GB, free: 1.656 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.732e-05/0.3644, allocations: 27.91 kB / 1.034 GB, free: 1.629 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001763/0.3646, allocations: 161.7 kB / 1.034 GB, free: 1.422 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.3647, allocations: 58.56 kB / 1.034 GB, free: 1.355 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.112e-05/0.3648, allocations: 24.84 kB / 1.034 GB, free: 1.328 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004825/0.3653, allocations: 0.5622 MB / 1.034 GB, free: 0.6367 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.3653, allocations: 38.48 kB / 1.034 GB, free: 0.5898 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 2.415e-06/0.3653, allocations: 0 / 1.034 GB, free: 0.5898 MB / 0.7794 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.0203/0.3856, allocations: 4.265 MB / 1.039 GB, free: 12.17 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.3857, allocations: 59.39 kB / 1.039 GB, free: 12.1 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.123e-05/0.3858, allocations: 93.86 kB / 1.039 GB, free: 12 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 7.95e-05/0.3859, allocations: 29.7 kB / 1.039 GB, free: 11.96 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 3.199e-05/0.3859, allocations: 84.27 kB / 1.039 GB, free: 11.88 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.3861, allocations: 63.03 kB / 1.039 GB, free: 11.81 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.3862, allocations: 29.64 kB / 1.039 GB, free: 11.78 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.3863, allocations: 318.8 kB / 1.039 GB, free: 11.46 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005322/0.3868, allocations: 307.9 kB / 1.04 GB, free: 11.16 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005389/0.3874, allocations: 311.9 kB / 1.04 GB, free: 10.85 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001598/0.389, allocations: 0.7729 MB / 1.041 GB, free: 10.08 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.389, allocations: 0 / 1.041 GB, free: 10.08 MB / 0.795 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001853/0.3909, allocations: 0.8059 MB / 1.041 GB, free: 9.266 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3909, allocations: 4 kB / 1.041 GB, free: 9.262 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3909, allocations: 4 kB / 1.041 GB, free: 9.258 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3909, allocations: 0 / 1.041 GB, free: 9.258 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008617/0.3918, allocations: 91.95 kB / 1.041 GB, free: 9.168 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.988e-06/0.3918, allocations: 4 kB / 1.041 GB, free: 9.164 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005534/0.3924, allocations: 7.984 kB / 1.041 GB, free: 9.156 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.263e-05/0.3925, allocations: 31.98 kB / 1.042 GB, free: 9.125 MB / 0.795 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.0002142/0.3927, allocations: 131.2 kB / 1.042 GB, free: 8.988 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.503e-05/0.3928, allocations: 7.906 kB / 1.042 GB, free: 8.98 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003612/0.3964, allocations: 1.396 MB / 1.043 GB, free: 7.574 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.116e-06/0.3964, allocations: 7.984 kB / 1.043 GB, free: 7.566 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3964, allocations: 0 / 1.043 GB, free: 7.566 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3965, allocations: 0 / 1.043 GB, free: 7.566 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002941/0.3994, allocations: 1.806 MB / 1.045 GB, free: 5.699 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.3994, allocations: 0 / 1.045 GB, free: 5.699 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008312/0.4003, allocations: 107.9 kB / 1.045 GB, free: 5.594 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/0.4003, allocations: 4 kB / 1.045 GB, free: 5.59 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.161e-05/0.4004, allocations: 35.86 kB / 1.045 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.4004, allocations: 4 kB / 1.045 GB, free: 5.551 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4004, allocations: 0 / 1.045 GB, free: 5.551 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002468/0.4028, allocations: 1.469 MB / 1.046 GB, free: 4.062 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.317e-05/0.4029, allocations: 96.88 kB / 1.046 GB, free: 3.949 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.477e-05/0.403, allocations: 15.92 kB / 1.046 GB, free: 3.934 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005575/0.4036, allocations: 8 kB / 1.046 GB, free: 3.926 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.4037, allocations: 43.97 kB / 1.047 GB, free: 3.883 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.422e-05/0.4038, allocations: 35.98 kB / 1.047 GB, free: 3.848 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.158e-05/0.4039, allocations: 75.28 kB / 1.047 GB, free: 3.773 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4039, allocations: 0 / 1.047 GB, free: 3.773 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006004/0.4045, allocations: 180 kB / 1.047 GB, free: 3.598 MB / 0.795 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.0005241/0.405, allocations: 231.2 kB / 1.047 GB, free: 3.363 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001283/0.4063, allocations: 0.7222 MB / 1.048 GB, free: 2.641 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4063, allocations: 4 kB / 1.048 GB, free: 2.637 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006731/0.407, allocations: 452 kB / 1.048 GB, free: 2.195 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.4073, allocations: 19.94 kB / 1.048 GB, free: 2.176 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00355/0.4109, allocations: 0.8641 MB / 1.049 GB, free: 1.289 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.4112, allocations: 0.7145 MB / 1.05 GB, free: 0.5508 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001455/0.4127, allocations: 293.5 kB / 1.05 GB, free: 272 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005542/0.4132, allocations: 95.41 kB / 1.05 GB, free: 176 kB / 0.795 GB Notification: Performance of SimCode: time 1.232e-06/0.4133, allocations: 0 / 1.05 GB, free: 176 kB / 0.795 GB Notification: Performance of Templates: time 0.01729/0.4306, allocations: 10.64 MB / 1.06 GB, free: 5.586 MB / 0.8106 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/jenkins/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