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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001272/0.001272, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.397/1.397, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.794/2.794, allocations: 472.6 MB / 0.7451 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 70.95 kB / 0.912 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3135, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001883/0.3154, allocations: 0.6211 MB / 1.069 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001685/0.3172, allocations: 1.289 MB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.648e-05/0.3172, allocations: 0 / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.425e-05/0.3172, allocations: 3.938 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.321e-05/0.3173, allocations: 0 / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004253/0.3177, allocations: 79.73 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.131e-05/0.3178, allocations: 15.98 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.689e-05/0.3178, allocations: 4 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.541e-05/0.3178, allocations: 11.92 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.725e-05/0.3179, allocations: 11.98 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/0.3179, allocations: 4 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000227/0.3182, allocations: 99.88 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.731e-05/0.3182, allocations: 11.88 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.992e-05/0.3182, allocations: 15.92 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.3184, allocations: 71.84 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3184, allocations: 0 / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3184, allocations: 0 / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.3184, allocations: 0 / 1.07 GB, free: 8.195 MB / 0.8262 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.000425/0.3188, allocations: 347.8 kB / 1.071 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3189, allocations: 12.03 kB / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.3189, allocations: 4.844 kB / 1.071 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.3191, allocations: 168.3 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.3191, allocations: 4.375 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.546e-05/0.3191, allocations: 4.375 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001259/0.3193, allocations: 57.98 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3193, allocations: 0 / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.3193, allocations: 0 / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.3193, allocations: 0 / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.308e-05/0.3194, allocations: 31.92 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001861/0.3196, allocations: 161.7 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.3197, allocations: 62.55 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.23e-05/0.3198, allocations: 24.86 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004812/0.3202, allocations: 0.5583 MB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.3203, allocations: 38.5 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.3203, allocations: 3.938 kB / 1.072 GB, free: 6.445 MB / 0.8262 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.02073/0.341, allocations: 4.392 MB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.445e-05/0.3411, allocations: 51.41 kB / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.855e-05/0.3412, allocations: 97.86 kB / 1.076 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.907e-05/0.3412, allocations: 29.7 kB / 1.076 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.876e-05/0.3413, allocations: 80.14 kB / 1.076 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.3414, allocations: 55.2 kB / 1.076 GB, free: 1.562 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002429/0.3416, allocations: 93.56 kB / 1.076 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3418, allocations: 322.8 kB / 1.077 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005218/0.3423, allocations: 307.9 kB / 1.077 GB, free: 0.8398 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005165/0.3428, allocations: 311.9 kB / 1.077 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.3444, allocations: 0.7719 MB / 1.078 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3444, allocations: 4 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001563/0.346, allocations: 0.7993 MB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.346, allocations: 8 kB / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.346, allocations: 0 / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.346, allocations: 0 / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00089/0.3469, allocations: 95.94 kB / 1.079 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.3469, allocations: 0 / 1.079 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005834/0.3475, allocations: 8 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.588e-05/0.3476, allocations: 31.98 kB / 1.079 GB, free: 14.81 MB / 0.8419 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.0001896/0.3478, allocations: 131.2 kB / 1.079 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.634e-05/0.3479, allocations: 4 kB / 1.079 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00334/0.3513, allocations: 1.407 MB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.3513, allocations: 4 kB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3513, allocations: 0 / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.3513, allocations: 0 / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002887/0.3542, allocations: 1.813 MB / 1.082 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3542, allocations: 0 / 1.082 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008398/0.3551, allocations: 115.9 kB / 1.082 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.135e-06/0.3551, allocations: 4 kB / 1.082 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.889e-05/0.3551, allocations: 31.88 kB / 1.082 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3552, allocations: 0 / 1.082 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3552, allocations: 4 kB / 1.082 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002379/0.3575, allocations: 1.473 MB / 1.084 GB, free: 9.734 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.451e-05/0.3576, allocations: 88.98 kB / 1.084 GB, free: 9.629 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.834e-05/0.3577, allocations: 16 kB / 1.084 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005516/0.3583, allocations: 15.94 kB / 1.084 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.3584, allocations: 47.95 kB / 1.084 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.921e-05/0.3585, allocations: 28 kB / 1.084 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.212e-05/0.3586, allocations: 79.28 kB / 1.084 GB, free: 9.445 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3586, allocations: 0 / 1.084 GB, free: 9.445 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005965/0.3592, allocations: 172 kB / 1.084 GB, free: 9.277 MB / 0.8419 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.0005185/0.3597, allocations: 231.7 kB / 1.085 GB, free: 9.043 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001319/0.361, allocations: 0.7392 MB / 1.085 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.361, allocations: 0 / 1.085 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006609/0.3617, allocations: 451.8 kB / 1.086 GB, free: 7.863 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.362, allocations: 16 kB / 1.086 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.3656, allocations: 0.8053 MB / 1.087 GB, free: 7.016 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.3659, allocations: 0.7142 MB / 1.087 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001423/0.3673, allocations: 297.5 kB / 1.088 GB, free: 5.984 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000543/0.3678, allocations: 91.41 kB / 1.088 GB, free: 5.895 MB / 0.8419 GB Notification: Performance of SimCode: time 7.92e-07/0.3678, allocations: 4 kB / 1.088 GB, free: 5.891 MB / 0.8419 GB Notification: Performance of Templates: time 0.01683/0.3847, allocations: 11.21 MB / 1.099 GB, free: 10.73 MB / 0.8575 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