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.008611/0.008611, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001491/0.001491, allocations: 190.3 kB / 16.67 MB, free: 5.93 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.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.483/2.483, allocations: 390.2 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 68.5 kB / 0.9509 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.336, allocations: 140.4 MB / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001975/0.338, allocations: 0.6037 MB / 1.089 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001798/0.3398, allocations: 1.289 MB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.763e-05/0.3399, allocations: 0 / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.21e-05/0.3399, allocations: 3.938 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.21e-05/0.34, allocations: 0 / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004488/0.3404, allocations: 79.72 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.708e-05/0.3405, allocations: 19.98 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.941e-05/0.3406, allocations: 0 / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.659e-05/0.3406, allocations: 7.984 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.591e-05/0.3407, allocations: 27.91 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.198e-05/0.3407, allocations: 0 / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002398/0.3409, allocations: 95.84 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.33e-05/0.341, allocations: 19.91 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.704e-05/0.341, allocations: 7.938 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.3412, allocations: 63.86 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.3412, allocations: 3.984 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3412, allocations: 3.938 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.3412, allocations: 0 / 1.09 GB, free: 15.22 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.0005217/0.3417, allocations: 351.3 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.3418, allocations: 8.031 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.56e-05/0.3418, allocations: 4.891 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.342, allocations: 176.3 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.3421, allocations: 384 / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.222e-05/0.3421, allocations: 4.375 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.3423, allocations: 57.98 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.3423, allocations: 3.938 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.3423, allocations: 7.922 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.3423, allocations: 4 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.836e-05/0.3424, allocations: 31.95 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000288/0.3427, allocations: 161.7 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.3429, allocations: 54.56 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.039e-05/0.343, allocations: 28.84 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007873/0.3438, allocations: 0.5583 MB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.522e-05/0.3438, allocations: 42.42 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.392e-06/0.3438, allocations: 0 / 1.092 GB, free: 13.45 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.02082/0.3647, allocations: 4.373 MB / 1.096 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.3648, allocations: 55.41 kB / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.518e-05/0.3648, allocations: 93.84 kB / 1.096 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.754e-05/0.3649, allocations: 29.7 kB / 1.096 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.843e-05/0.365, allocations: 80.14 kB / 1.096 GB, free: 8.637 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.3651, allocations: 63.48 kB / 1.096 GB, free: 8.574 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002591/0.3654, allocations: 89.67 kB / 1.096 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3655, allocations: 326.9 kB / 1.097 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005389/0.3661, allocations: 307.9 kB / 1.097 GB, free: 7.852 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005439/0.3666, allocations: 317.8 kB / 1.097 GB, free: 7.543 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001535/0.3682, allocations: 0.7663 MB / 1.098 GB, free: 6.773 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3682, allocations: 3.938 kB / 1.098 GB, free: 6.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001592/0.3698, allocations: 0.8009 MB / 1.099 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.3698, allocations: 4 kB / 1.099 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3698, allocations: 0 / 1.099 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.3698, allocations: 3.984 kB / 1.099 GB, free: 5.957 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008974/0.3707, allocations: 91.95 kB / 1.099 GB, free: 5.867 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.3708, allocations: 4 kB / 1.099 GB, free: 5.863 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.3713, allocations: 8 kB / 1.099 GB, free: 5.855 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.523e-05/0.3714, allocations: 35.97 kB / 1.099 GB, free: 5.82 MB / 0.8575 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.0002308/0.3717, allocations: 125.7 kB / 1.099 GB, free: 5.688 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-05/0.3717, allocations: 7.953 kB / 1.099 GB, free: 5.68 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003169/0.3749, allocations: 1.396 MB / 1.1 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-06/0.3749, allocations: 4 kB / 1.1 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.375, allocations: 0 / 1.1 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.375, allocations: 3.984 kB / 1.1 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.3781, allocations: 1.822 MB / 1.102 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3782, allocations: 0 / 1.102 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008242/0.379, allocations: 111.9 kB / 1.102 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.379, allocations: 4 kB / 1.102 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.752e-05/0.3791, allocations: 31.92 kB / 1.102 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.408e-05/0.3791, allocations: 4 kB / 1.102 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.391e-06/0.3791, allocations: 3.984 kB / 1.102 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002497/0.3816, allocations: 1.463 MB / 1.104 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.663e-05/0.3817, allocations: 92.98 kB / 1.104 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.3818, allocations: 19.98 kB / 1.104 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005366/0.3824, allocations: 8 kB / 1.104 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.3825, allocations: 43.97 kB / 1.104 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.954e-05/0.3826, allocations: 28 kB / 1.104 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.507e-05/0.3826, allocations: 83.22 kB / 1.104 GB, free: 472 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3826, allocations: 3.938 kB / 1.104 GB, free: 468 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006118/0.3833, allocations: 183.7 kB / 1.104 GB, free: 284 kB / 0.8575 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.0006084/0.3839, allocations: 226.9 kB / 1.104 GB, free: 48 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00135/0.3852, allocations: 0.7184 MB / 1.105 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3853, allocations: 0 / 1.105 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007161/0.386, allocations: 459.6 kB / 1.105 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003603/0.3863, allocations: 12 kB / 1.105 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.3899, allocations: 0.8045 MB / 1.106 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.3902, allocations: 0.7182 MB / 1.107 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.001004/0.3912, allocations: 293.5 kB / 1.107 GB, free: 13 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005825/0.3918, allocations: 91.41 kB / 1.107 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of SimCode: time 7.11e-07/0.3918, allocations: 0 / 1.107 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of Templates: time 0.01971/0.4115, allocations: 11.26 MB / 1.118 GB, free: 1.711 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/jenkins/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