Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.328/1.328, allocations: 251.9 MB / 266.9 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001112/0.001111, allocations: 179.6 kB / 326.5 MB, free: 2.289 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007754/0.0007754, allocations: 96.89 kB / 0.6821 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003908/0.0003908, allocations: 11.66 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2225, allocations: 106.3 MB / 0.9001 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1654/0.388, allocations: 132.3 MB / 1.029 GB, free: 11.49 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.3882, allocations: 79.95 kB / 1.029 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006764/0.395, allocations: 2.342 MB / 1.032 GB, free: 9.066 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.593e-06/0.395, allocations: 0 / 1.032 GB, free: 9.066 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.3951, allocations: 4 kB / 1.032 GB, free: 9.062 MB / 0.6823 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.0003542/0.3954, allocations: 359.1 kB / 1.032 GB, free: 8.664 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.3955, allocations: 16.02 kB / 1.032 GB, free: 8.648 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.382e-05/0.3955, allocations: 0 / 1.032 GB, free: 8.648 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.3956, allocations: 163 kB / 1.032 GB, free: 8.449 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.3957, allocations: 8 kB / 1.032 GB, free: 8.441 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.811e-05/0.3957, allocations: 4 kB / 1.032 GB, free: 8.438 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001222/0.3958, allocations: 53.66 kB / 1.032 GB, free: 8.379 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.3958, allocations: 8 kB / 1.032 GB, free: 8.371 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.3959, allocations: 0 / 1.032 GB, free: 8.371 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.3959, allocations: 0 / 1.032 GB, free: 8.371 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.158e-05/0.3959, allocations: 23.92 kB / 1.032 GB, free: 8.348 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001886/0.3961, allocations: 177.5 kB / 1.032 GB, free: 8.125 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.3962, allocations: 58.56 kB / 1.033 GB, free: 8.059 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004988/0.3968, allocations: 0.5583 MB / 1.033 GB, free: 7.371 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.3968, allocations: 42.5 kB / 1.033 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.3968, allocations: 0 / 1.033 GB, free: 7.32 MB / 0.6823 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.01883/0.4156, allocations: 4.183 MB / 1.037 GB, free: 2.988 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.4157, allocations: 55.41 kB / 1.037 GB, free: 2.922 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.152e-05/0.4158, allocations: 88.95 kB / 1.037 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.643e-05/0.4159, allocations: 29.7 kB / 1.037 GB, free: 2.793 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.15e-05/0.4159, allocations: 84.27 kB / 1.037 GB, free: 2.707 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.4161, allocations: 55.17 kB / 1.037 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.778e-05/0.4161, allocations: 0 / 1.037 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.4163, allocations: 322.8 kB / 1.038 GB, free: 2.328 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005194/0.4168, allocations: 311.8 kB / 1.038 GB, free: 2.023 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005028/0.4173, allocations: 311.9 kB / 1.038 GB, free: 1.719 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007124/0.418, allocations: 375.9 kB / 1.039 GB, free: 1.352 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.418, allocations: 0 / 1.039 GB, free: 1.352 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001466/0.4195, allocations: 0.7927 MB / 1.04 GB, free: 0.5547 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.4195, allocations: 12 kB / 1.04 GB, free: 0.543 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.4195, allocations: 0 / 1.04 GB, free: 0.543 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.4196, allocations: 0 / 1.04 GB, free: 0.543 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007645/0.4203, allocations: 91.89 kB / 1.04 GB, free: 464 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.4204, allocations: 3.938 kB / 1.04 GB, free: 460 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004684/0.4208, allocations: 8 kB / 1.04 GB, free: 452 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/0.4209, allocations: 43.92 kB / 1.04 GB, free: 408 kB / 0.6823 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.0001922/0.4211, allocations: 117.8 kB / 1.04 GB, free: 280 kB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.553e-05/0.4212, allocations: 0 / 1.04 GB, free: 280 kB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.4243, allocations: 1.4 MB / 1.041 GB, free: 14.86 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.4243, allocations: 4 kB / 1.041 GB, free: 14.86 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.4244, allocations: 3.984 kB / 1.041 GB, free: 14.86 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.4244, allocations: 0 / 1.041 GB, free: 14.86 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002653/0.427, allocations: 1.809 MB / 1.043 GB, free: 12.99 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.427, allocations: 0 / 1.043 GB, free: 12.99 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000724/0.4278, allocations: 103.9 kB / 1.043 GB, free: 12.89 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.4278, allocations: 4 kB / 1.043 GB, free: 12.88 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.147e-05/0.4279, allocations: 35.94 kB / 1.043 GB, free: 12.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4279, allocations: 4 kB / 1.043 GB, free: 12.84 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4279, allocations: 0 / 1.043 GB, free: 12.84 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00213/0.43, allocations: 1.471 MB / 1.044 GB, free: 11.35 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.15e-05/0.4301, allocations: 96.92 kB / 1.045 GB, free: 11.23 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.742e-05/0.4302, allocations: 8 kB / 1.045 GB, free: 11.23 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004403/0.4306, allocations: 12 kB / 1.045 GB, free: 11.21 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.4307, allocations: 39.97 kB / 1.045 GB, free: 11.18 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.707e-05/0.4308, allocations: 35.97 kB / 1.045 GB, free: 11.14 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.196e-05/0.4308, allocations: 79.28 kB / 1.045 GB, free: 11.06 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4308, allocations: 4.156 kB / 1.045 GB, free: 11.06 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000566/0.4314, allocations: 203.7 kB / 1.045 GB, free: 10.86 MB / 0.698 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.00049/0.4319, allocations: 250.8 kB / 1.045 GB, free: 10.6 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001111/0.433, allocations: 0.7184 MB / 1.046 GB, free: 9.883 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.433, allocations: 4 kB / 1.046 GB, free: 9.879 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005836/0.4336, allocations: 447.8 kB / 1.046 GB, free: 9.441 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000177/0.4338, allocations: 12 kB / 1.046 GB, free: 9.43 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002897/0.4367, allocations: 0.8517 MB / 1.047 GB, free: 8.551 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.437, allocations: 0.7223 MB / 1.048 GB, free: 7.801 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001375/0.4384, allocations: 293.5 kB / 1.048 GB, free: 7.512 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000529/0.4389, allocations: 99.41 kB / 1.048 GB, free: 7.414 MB / 0.698 GB Notification: Performance of SimCode: time 5.91e-07/0.4389, allocations: 0 / 1.048 GB, free: 7.414 MB / 0.698 GB Notification: Performance of Templates: time 0.3985/0.8374, allocations: 10.1 MB / 1.058 GB, free: 154.4 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches