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.451/1.451, allocations: 249.5 MB / 257 MB, free: 6.926 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001052/0.001052, allocations: 175.8 kB / 316.3 MB, free: 3.219 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.846/1.846, allocations: 205.3 MB / 0.5671 GB, free: 15.85 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.0009314/0.0009316, allocations: 81.25 kB / 0.6714 GB, free: 4.969 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.09e-05/2.093e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2572, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8439/1.101, allocations: 132.5 MB / 1.015 GB, free: 5.25 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/1.102, allocations: 77.14 kB / 1.015 GB, free: 5.207 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.007182/1.109, allocations: 2.343 MB / 1.017 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.844e-06/1.109, allocations: 0 / 1.017 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.552e-06/1.109, allocations: 0 / 1.017 GB, free: 3.246 MB / 0.6355 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.0003446/1.109, allocations: 350.3 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/1.109, allocations: 8.031 kB / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.4e-05/1.109, allocations: 4 kB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/1.109, allocations: 163 kB / 1.018 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/1.109, allocations: 4 kB / 1.018 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/1.109, allocations: 11.88 kB / 1.018 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001051/1.11, allocations: 31.55 kB / 1.018 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.092e-05/1.11, allocations: 41.5 kB / 1.018 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/1.11, allocations: 3.906 kB / 1.018 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/1.11, allocations: 0 / 1.018 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/1.11, allocations: 4 kB / 1.018 GB, free: 2.566 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001649/1.11, allocations: 141.7 kB / 1.018 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.778e-05/1.11, allocations: 58 kB / 1.018 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.814e-05/1.11, allocations: 20.73 kB / 1.018 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004868/1.111, allocations: 0.5619 MB / 1.018 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/1.111, allocations: 30.56 kB / 1.018 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/1.111, allocations: 0 / 1.018 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of matching and sorting (n=17): time 0.01251/1.123, allocations: 3.321 MB / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/1.123, allocations: 55.41 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.248e-05/1.123, allocations: 88.81 kB / 1.022 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.33e-05/1.123, allocations: 25.7 kB / 1.022 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 3.944e-05/1.123, allocations: 80.14 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/1.124, allocations: 58.73 kB / 1.022 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.655e-05/1.124, allocations: 0 / 1.022 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001212/1.124, allocations: 318.8 kB / 1.022 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004218/1.124, allocations: 311.5 kB / 1.023 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004486/1.125, allocations: 304.7 kB / 1.023 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006466/1.125, allocations: 369.8 kB / 1.023 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/1.125, allocations: 0 / 1.023 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001316/1.127, allocations: 0.7783 MB / 1.024 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/1.127, allocations: 5.562 kB / 1.024 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/1.127, allocations: 0 / 1.024 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/1.127, allocations: 4 kB / 1.024 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008543/1.128, allocations: 91.94 kB / 1.024 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/1.128, allocations: 0 / 1.024 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005253/1.128, allocations: 8 kB / 1.024 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.232e-05/1.128, allocations: 35.92 kB / 1.024 GB, free: 12.83 MB / 0.6511 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 () * 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.0002144/1.128, allocations: 112.4 kB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.021e-05/1.128, allocations: 4 kB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003156/1.132, allocations: 1.329 MB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/1.132, allocations: 4 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/1.132, allocations: 0 / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/1.132, allocations: 4 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00267/1.134, allocations: 1.706 MB / 1.027 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/1.134, allocations: 0 / 1.027 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007766/1.135, allocations: 111.3 kB / 1.027 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.922e-05/1.135, allocations: 4 kB / 1.027 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.59e-05/1.135, allocations: 27.19 kB / 1.027 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/1.135, allocations: 4.031 kB / 1.027 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/1.135, allocations: 7.953 kB / 1.027 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002041/1.137, allocations: 1.377 MB / 1.029 GB, free: 9.504 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/1.137, allocations: 92.98 kB / 1.029 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.872e-05/1.137, allocations: 0 / 1.029 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005143/1.138, allocations: 11.94 kB / 1.029 GB, free: 9.383 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/1.138, allocations: 47.97 kB / 1.029 GB, free: 9.34 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-05/1.138, allocations: 28 kB / 1.029 GB, free: 9.312 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.326e-05/1.138, allocations: 79.28 kB / 1.029 GB, free: 9.234 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.31e-07/1.138, allocations: 0 / 1.029 GB, free: 9.234 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006869/1.139, allocations: 199.5 kB / 1.029 GB, free: 9.043 MB / 0.6511 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 () * 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.0005852/1.14, allocations: 250.7 kB / 1.029 GB, free: 8.785 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001105/1.141, allocations: 0.6978 MB / 1.03 GB, free: 8.375 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.141, allocations: 4.094 kB / 1.03 GB, free: 8.371 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005717/1.141, allocations: 427.8 kB / 1.03 GB, free: 8.133 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002208/1.142, allocations: 0 / 1.03 GB, free: 8.133 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/1.145, allocations: 0.6958 MB / 1.031 GB, free: 7.578 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/1.145, allocations: 0.7219 MB / 1.032 GB, free: 6.828 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001464/1.147, allocations: 293.3 kB / 1.032 GB, free: 6.543 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005579/1.147, allocations: 94.47 kB / 1.032 GB, free: 6.453 MB / 0.6511 GB Notification: Performance of SimCode: time 7.51e-07/1.147, allocations: 4 kB / 1.032 GB, free: 6.449 MB / 0.6511 GB Notification: Performance of Templates: time 0.01612/1.163, allocations: 10.11 MB / 1.042 GB, free: 12.37 MB / 0.6667 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