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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.386/2.386, allocations: 390.3 MB / 405.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002315/0.002314, allocations: 165.2 kB / 498.1 MB, free: 5.727 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.551/1.551, allocations: 223.2 MB / 0.7948 GB, free: 17.9 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 102.8 kB / 0.9346 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004021/0.0004023, allocations: 10.5 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3013, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2007/0.5021, allocations: 149.8 MB / 1.369 GB, free: 12.26 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5024, allocations: 79.94 kB / 1.369 GB, free: 12.18 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00851/0.5109, allocations: 2.419 MB / 1.372 GB, free: 9.758 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.523e-06/0.511, allocations: 0 / 1.372 GB, free: 9.758 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.511, allocations: 0 / 1.372 GB, free: 9.758 MB / 0.8698 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.0004708/0.5114, allocations: 355.3 kB / 1.372 GB, free: 9.363 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.5115, allocations: 12.03 kB / 1.372 GB, free: 9.352 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.644e-05/0.5115, allocations: 3.906 kB / 1.372 GB, free: 9.348 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.5117, allocations: 171 kB / 1.372 GB, free: 9.141 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.5117, allocations: 4 kB / 1.372 GB, free: 9.137 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.5118, allocations: 4 kB / 1.372 GB, free: 9.133 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001331/0.5119, allocations: 49.62 kB / 1.372 GB, free: 9.078 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.5119, allocations: 7.984 kB / 1.372 GB, free: 9.07 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.512, allocations: 4 kB / 1.372 GB, free: 9.066 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.512, allocations: 3.984 kB / 1.372 GB, free: 9.062 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.022e-05/0.512, allocations: 19.98 kB / 1.372 GB, free: 9.043 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002226/0.5123, allocations: 165.6 kB / 1.372 GB, free: 8.832 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.5124, allocations: 62.5 kB / 1.372 GB, free: 8.762 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005159/0.5129, allocations: 0.5583 MB / 1.373 GB, free: 8.074 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.513, allocations: 30.56 kB / 1.373 GB, free: 8.035 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.513, allocations: 0 / 1.373 GB, free: 8.035 MB / 0.8698 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.01977/0.5328, allocations: 4.259 MB / 1.377 GB, free: 3.617 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.467e-05/0.5328, allocations: 55.41 kB / 1.377 GB, free: 3.551 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.395e-05/0.5329, allocations: 89 kB / 1.377 GB, free: 3.457 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 8.799e-05/0.533, allocations: 25.83 kB / 1.377 GB, free: 3.426 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.394e-05/0.5331, allocations: 88.12 kB / 1.377 GB, free: 3.336 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.5332, allocations: 59.19 kB / 1.377 GB, free: 3.277 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.044e-05/0.5332, allocations: 4 kB / 1.378 GB, free: 3.273 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.5334, allocations: 318.8 kB / 1.378 GB, free: 2.953 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005285/0.5339, allocations: 319.6 kB / 1.378 GB, free: 2.641 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005034/0.5344, allocations: 309.6 kB / 1.378 GB, free: 2.34 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007802/0.5352, allocations: 391.9 kB / 1.379 GB, free: 1.957 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.5352, allocations: 0 / 1.379 GB, free: 1.957 MB / 0.8698 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001559/0.5368, allocations: 0.7957 MB / 1.38 GB, free: 1.156 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.709e-05/0.5368, allocations: 8 kB / 1.38 GB, free: 1.148 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.5369, allocations: 0 / 1.38 GB, free: 1.148 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.5369, allocations: 4 kB / 1.38 GB, free: 1.145 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008026/0.5377, allocations: 95.94 kB / 1.38 GB, free: 1.051 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.5377, allocations: 4.891 kB / 1.38 GB, free: 1.047 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004668/0.5382, allocations: 8 kB / 1.38 GB, free: 1.039 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.211e-05/0.5383, allocations: 31.98 kB / 1.38 GB, free: 1.008 MB / 0.8698 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.000218/0.5385, allocations: 121.8 kB / 1.38 GB, free: 0.8789 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.389e-05/0.5386, allocations: 11.91 kB / 1.38 GB, free: 0.8672 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003518/0.5421, allocations: 1.405 MB / 1.381 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.5421, allocations: 4 kB / 1.381 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.5421, allocations: 0 / 1.381 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.5421, allocations: 7.891 kB / 1.381 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003026/0.5452, allocations: 1.81 MB / 1.383 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.5452, allocations: 0 / 1.383 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007681/0.546, allocations: 111.9 kB / 1.383 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.168e-06/0.546, allocations: 3.984 kB / 1.383 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.563e-05/0.5461, allocations: 28 kB / 1.383 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.5461, allocations: 4 kB / 1.383 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.5461, allocations: 0 / 1.383 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002412/0.5485, allocations: 1.478 MB / 1.385 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.762e-05/0.5486, allocations: 100.9 kB / 1.385 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.995e-05/0.5487, allocations: 4 kB / 1.385 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004686/0.5491, allocations: 12 kB / 1.385 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.5493, allocations: 43.91 kB / 1.385 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.259e-05/0.5493, allocations: 31.98 kB / 1.385 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.941e-05/0.5494, allocations: 79.28 kB / 1.385 GB, free: 11.63 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5494, allocations: 4.156 kB / 1.385 GB, free: 11.63 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0006675/0.5501, allocations: 211.7 kB / 1.385 GB, free: 11.42 MB / 0.8855 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.0005298/0.5506, allocations: 262.8 kB / 1.385 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00124/0.5519, allocations: 0.7238 MB / 1.386 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.5519, allocations: 4 kB / 1.386 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0006687/0.5526, allocations: 451.7 kB / 1.386 GB, free: 9.988 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.5528, allocations: 11.95 kB / 1.386 GB, free: 9.977 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003218/0.556, allocations: 0.8582 MB / 1.387 GB, free: 9.09 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000434/0.5565, allocations: 0.7223 MB / 1.388 GB, free: 8.344 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001452/0.5579, allocations: 293.5 kB / 1.388 GB, free: 8.055 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005616/0.5585, allocations: 99.41 kB / 1.388 GB, free: 7.957 MB / 0.8855 GB Notification: Performance of SimCode: time 7.01e-07/0.5585, allocations: 0 / 1.388 GB, free: 7.957 MB / 0.8855 GB Notification: Performance of Templates: time 0.01516/0.5737, allocations: 10.12 MB / 1.398 GB, free: 13.88 MB / 0.9011 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","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches