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.001135/0.001135, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001706/0.001706, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.9/2.9, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003919/0.000392, allocations: 13.25 kB / 0.9021 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3491, allocations: 159.6 MB / 1.058 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0007101/0.3499, allocations: 342.9 kB / 1.058 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001477/0.3514, allocations: 1.248 MB / 1.06 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.188e-05/0.3514, allocations: 0 / 1.06 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.226e-05/0.3514, allocations: 0 / 1.06 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.083e-05/0.3515, allocations: 0 / 1.06 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003355/0.3518, allocations: 59.86 kB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.618e-05/0.3519, allocations: 19.92 kB / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.962e-05/0.3519, allocations: 0 / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.865e-05/0.352, allocations: 8 kB / 1.06 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.617e-05/0.352, allocations: 19.91 kB / 1.06 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.3521, allocations: 4 kB / 1.06 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002145/0.3523, allocations: 95.89 kB / 1.06 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.273e-05/0.3523, allocations: 7.984 kB / 1.06 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.543e-05/0.3524, allocations: 29.64 kB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.3525, allocations: 47.88 kB / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3525, allocations: 0 / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3525, allocations: 0 / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.3525, allocations: 0 / 1.06 GB, free: 3.395 MB / 0.8106 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.0004558/0.353, allocations: 347.7 kB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.353, allocations: 8.031 kB / 1.06 GB, free: 3 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.498e-05/0.3531, allocations: 0 / 1.06 GB, free: 3 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.3532, allocations: 167 kB / 1.06 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.3533, allocations: 4 kB / 1.06 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.522e-05/0.3533, allocations: 11.86 kB / 1.06 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.3535, allocations: 53.67 kB / 1.06 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.3535, allocations: 0 / 1.06 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.3535, allocations: 3.938 kB / 1.06 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.3535, allocations: 0 / 1.06 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.323e-05/0.3536, allocations: 27.98 kB / 1.06 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002018/0.3538, allocations: 161.7 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001196/0.3539, allocations: 62.53 kB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.633e-05/0.354, allocations: 24.86 kB / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005134/0.3545, allocations: 0.5661 MB / 1.061 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.3546, allocations: 38.5 kB / 1.061 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.3546, allocations: 0 / 1.061 GB, free: 1.645 MB / 0.8106 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.01761/0.3722, allocations: 4.272 MB / 1.065 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.527e-05/0.3723, allocations: 55.41 kB / 1.066 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.618e-05/0.3724, allocations: 97.86 kB / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.923e-05/0.3725, allocations: 25.7 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.087e-05/0.3725, allocations: 80.14 kB / 1.066 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.3726, allocations: 67.08 kB / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.905e-05/0.3727, allocations: 4 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3728, allocations: 318.8 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005053/0.3733, allocations: 307.9 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005023/0.3738, allocations: 312 kB / 1.067 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007742/0.3746, allocations: 393.4 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3746, allocations: 0 / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001633/0.3763, allocations: 0.7994 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3763, allocations: 4 kB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.3763, allocations: 0 / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.3764, allocations: 7.938 kB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007175/0.3771, allocations: 87.95 kB / 1.068 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.3771, allocations: 7.984 kB / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003704/0.3775, allocations: 8 kB / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-05/0.3776, allocations: 31.98 kB / 1.068 GB, free: 10.61 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001739/0.3777, allocations: 129.7 kB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.072e-05/0.3778, allocations: 7.906 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003414/0.3812, allocations: 1.399 MB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.3812, allocations: 7.984 kB / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3813, allocations: 0 / 1.069 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3813, allocations: 4 kB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002829/0.3841, allocations: 1.805 MB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.3841, allocations: 0 / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006918/0.3848, allocations: 107.9 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.3848, allocations: 4 kB / 1.071 GB, free: 7.07 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.676e-05/0.3849, allocations: 27.98 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.251e-06/0.3849, allocations: 4 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.3849, allocations: 11.92 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002314/0.3872, allocations: 1.457 MB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.297e-05/0.3873, allocations: 96.88 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.864e-05/0.3874, allocations: 12 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004008/0.3878, allocations: 8 kB / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.3879, allocations: 47.92 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.075e-05/0.388, allocations: 32.05 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.44e-05/0.3881, allocations: 79.28 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3881, allocations: 3.938 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005875/0.3887, allocations: 184 kB / 1.073 GB, free: 5.078 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004672/0.3891, allocations: 219.1 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001241/0.3904, allocations: 0.7223 MB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3904, allocations: 0 / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007103/0.3911, allocations: 455.8 kB / 1.075 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003313/0.3914, allocations: 14.25 kB / 1.075 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003145/0.3946, allocations: 0.8476 MB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.3949, allocations: 0.7185 MB / 1.076 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001445/0.3964, allocations: 294.3 kB / 1.076 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005151/0.3969, allocations: 91.41 kB / 1.077 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of SimCode: time 7.61e-07/0.3969, allocations: 0 / 1.077 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of Templates: time 0.01617/0.4131, allocations: 10.4 MB / 1.087 GB, free: 7.336 MB / 0.8419 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