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.008931/0.008931, allocations: 97.91 kB / 15.73 MB, free: 6.051 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.001635/0.001635, allocations: 191.8 kB / 16.67 MB, free: 5.977 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.487/2.487, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 69.05 kB / 0.9509 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3398, allocations: 140.4 MB / 1.088 GB, free: 1.562 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002462/0.3423, allocations: 0.6076 MB / 1.089 GB, free: 0.957 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002262/0.3446, allocations: 1.285 MB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.071e-05/0.3447, allocations: 0 / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.156e-05/0.3447, allocations: 3.938 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.42e-05/0.3448, allocations: 4 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005229/0.3453, allocations: 79.72 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.353e-05/0.3454, allocations: 15.98 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.483e-05/0.3455, allocations: 4 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.794e-05/0.3455, allocations: 7.984 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.778e-05/0.3456, allocations: 15.92 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.3456, allocations: 4 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002907/0.3459, allocations: 95.89 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.346, allocations: 11.92 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.04e-05/0.346, allocations: 23.86 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000199/0.3462, allocations: 63.91 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.3462, allocations: 0 / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.625e-06/0.3462, allocations: 3.938 kB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.3463, allocations: 0 / 1.09 GB, free: 15.33 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.0005789/0.3468, allocations: 343.5 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.3469, allocations: 12.03 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.144e-05/0.347, allocations: 8.844 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.3471, allocations: 172.4 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.3471, allocations: 4.312 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.3472, allocations: 8.359 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.3474, allocations: 58 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3474, allocations: 3.984 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.3474, allocations: 0 / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3474, allocations: 0 / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.893e-05/0.3475, allocations: 27.92 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00023/0.3478, allocations: 165.7 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.3479, allocations: 58.56 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.021e-05/0.348, allocations: 28.84 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006411/0.3486, allocations: 0.5583 MB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.3487, allocations: 34.5 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.773e-06/0.3487, allocations: 4 kB / 1.092 GB, free: 13.57 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.02321/0.3719, allocations: 4.369 MB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.372, allocations: 55.34 kB / 1.096 GB, free: 8.977 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.278e-05/0.3721, allocations: 101.8 kB / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.616e-05/0.3722, allocations: 29.7 kB / 1.096 GB, free: 8.832 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.794e-05/0.3722, allocations: 80.14 kB / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.3723, allocations: 55.2 kB / 1.096 GB, free: 8.695 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002563/0.3726, allocations: 89.67 kB / 1.096 GB, free: 8.602 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.3727, allocations: 322.8 kB / 1.097 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005464/0.3733, allocations: 311.8 kB / 1.097 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005206/0.3738, allocations: 317.5 kB / 1.097 GB, free: 7.664 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00155/0.3753, allocations: 0.7728 MB / 1.098 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3754, allocations: 0 / 1.098 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001537/0.3769, allocations: 0.7981 MB / 1.099 GB, free: 6.086 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.3769, allocations: 4 kB / 1.099 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3769, allocations: 3.984 kB / 1.099 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.377, allocations: 0 / 1.099 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007528/0.3777, allocations: 87.95 kB / 1.099 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.3777, allocations: 4 kB / 1.099 GB, free: 5.988 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004408/0.3782, allocations: 8 kB / 1.099 GB, free: 5.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.931e-05/0.3783, allocations: 35.97 kB / 1.099 GB, free: 5.945 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.0001787/0.3785, allocations: 131.7 kB / 1.099 GB, free: 5.809 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.386e-05/0.3786, allocations: 7.906 kB / 1.099 GB, free: 5.801 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002908/0.3815, allocations: 1.396 MB / 1.1 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.3815, allocations: 4 kB / 1.1 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3815, allocations: 0 / 1.1 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.3815, allocations: 3.984 kB / 1.1 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/0.3843, allocations: 1.814 MB / 1.102 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3844, allocations: 0 / 1.102 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007521/0.3851, allocations: 107.9 kB / 1.102 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.147e-05/0.3851, allocations: 7.984 kB / 1.102 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.167e-05/0.3852, allocations: 31.92 kB / 1.102 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3852, allocations: 7.938 kB / 1.102 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3852, allocations: 4.031 kB / 1.102 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002342/0.3876, allocations: 1.459 MB / 1.104 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.537e-05/0.3877, allocations: 92.94 kB / 1.104 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.726e-05/0.3877, allocations: 15.94 kB / 1.104 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004542/0.3882, allocations: 8 kB / 1.104 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.3884, allocations: 43.97 kB / 1.104 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.363e-05/0.3884, allocations: 36.06 kB / 1.104 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.869e-05/0.3885, allocations: 79.27 kB / 1.104 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3885, allocations: 3.938 kB / 1.104 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005683/0.3891, allocations: 176 kB / 1.104 GB, free: 424 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.0005243/0.3896, allocations: 227.1 kB / 1.104 GB, free: 188 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001274/0.3909, allocations: 0.7262 MB / 1.105 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3909, allocations: 0 / 1.105 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006354/0.3915, allocations: 459.7 kB / 1.105 GB, free: 15 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.3919, allocations: 19.92 kB / 1.105 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003101/0.395, allocations: 0.8014 MB / 1.106 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.3953, allocations: 0.7142 MB / 1.107 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0009399/0.3962, allocations: 289.6 kB / 1.107 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005058/0.3967, allocations: 95.41 kB / 1.107 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of SimCode: time 4.61e-07/0.3967, allocations: 0 / 1.107 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of Templates: time 0.01887/0.4156, allocations: 11.25 MB / 1.118 GB, free: 1.844 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