Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001642/0.001643, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002208/0.002209, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.399/1.399, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.552/2.552, allocations: 437 MB / 0.7103 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 75.91 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6449/0.6462, allocations: 151.6 MB / 1.017 GB, free: 2.52 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001807/0.6481, allocations: 0.619 MB / 1.018 GB, free: 1.898 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001634/0.6497, allocations: 1.275 MB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.072e-05/0.6498, allocations: 0 / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.6498, allocations: 0 / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.198e-05/0.6498, allocations: 7.875 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003675/0.6502, allocations: 71.73 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.249e-05/0.6502, allocations: 23.97 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.719e-05/0.6503, allocations: 8 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.975e-05/0.6503, allocations: 4 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.71e-05/0.6504, allocations: 19.92 kB / 1.019 GB, free: 484 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.6504, allocations: 4 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000213/0.6506, allocations: 107.9 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.441e-05/0.6507, allocations: 0 / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.698e-05/0.6507, allocations: 23.84 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001349/0.6508, allocations: 59.92 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.6508, allocations: 0 / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.392e-06/0.6508, allocations: 0 / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.6508, allocations: 0 / 1.019 GB, free: 288 kB / 0.7637 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.0004611/0.6513, allocations: 363.1 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.6514, allocations: 11.97 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.726e-05/0.6514, allocations: 4.938 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.6515, allocations: 164.3 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.6515, allocations: 8.375 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.674e-05/0.6516, allocations: 4.281 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.6517, allocations: 57.98 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.6517, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.6517, allocations: 4 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.6517, allocations: 4 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.459e-05/0.6518, allocations: 23.98 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.652, allocations: 161.6 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.6521, allocations: 66.48 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.387e-05/0.6522, allocations: 25.09 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005089/0.6527, allocations: 0.5622 MB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.6527, allocations: 42.5 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.6527, allocations: 0 / 1.021 GB, free: 14.51 MB / 0.7794 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.02072/0.6735, allocations: 4.366 MB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.6735, allocations: 55.41 kB / 1.025 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.366e-05/0.6736, allocations: 89.86 kB / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.491e-05/0.6737, allocations: 29.7 kB / 1.025 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.715e-05/0.6737, allocations: 84.14 kB / 1.025 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.6738, allocations: 59.05 kB / 1.025 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002482/0.6741, allocations: 93.66 kB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.6742, allocations: 322.9 kB / 1.026 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005335/0.6748, allocations: 319.8 kB / 1.026 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005068/0.6753, allocations: 307.9 kB / 1.026 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.6768, allocations: 0.7716 MB / 1.027 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.6768, allocations: 0 / 1.027 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001549/0.6784, allocations: 0.7957 MB / 1.028 GB, free: 7.035 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.6784, allocations: 4 kB / 1.028 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.6784, allocations: 0 / 1.028 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.6784, allocations: 4 kB / 1.028 GB, free: 7.027 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008669/0.6793, allocations: 103.9 kB / 1.028 GB, free: 6.926 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.6793, allocations: 0 / 1.028 GB, free: 6.926 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005609/0.6799, allocations: 4 kB / 1.028 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.471e-05/0.68, allocations: 31.98 kB / 1.028 GB, free: 6.891 MB / 0.7794 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.0001833/0.6802, allocations: 121.8 kB / 1.028 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.702e-05/0.6802, allocations: 7.906 kB / 1.028 GB, free: 6.754 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003231/0.6835, allocations: 1.403 MB / 1.03 GB, free: 5.348 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.6835, allocations: 8 kB / 1.03 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.6835, allocations: 0 / 1.03 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.6835, allocations: 0 / 1.03 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002911/0.6864, allocations: 1.814 MB / 1.031 GB, free: 3.465 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.6865, allocations: 0 / 1.031 GB, free: 3.465 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008245/0.6873, allocations: 115.9 kB / 1.032 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.6873, allocations: 0 / 1.032 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.366e-05/0.6874, allocations: 31.94 kB / 1.032 GB, free: 3.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.6874, allocations: 0 / 1.032 GB, free: 3.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.6874, allocations: 4 kB / 1.032 GB, free: 3.316 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002333/0.6897, allocations: 1.472 MB / 1.033 GB, free: 1.824 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.486e-05/0.6898, allocations: 92.95 kB / 1.033 GB, free: 1.715 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.875e-05/0.6899, allocations: 7.938 kB / 1.033 GB, free: 1.707 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005657/0.6905, allocations: 12 kB / 1.033 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.6906, allocations: 39.97 kB / 1.033 GB, free: 1.656 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.014e-05/0.6907, allocations: 35.98 kB / 1.033 GB, free: 1.621 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.362e-05/0.6907, allocations: 79.34 kB / 1.033 GB, free: 1.543 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6907, allocations: 0 / 1.033 GB, free: 1.543 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005799/0.6913, allocations: 176 kB / 1.033 GB, free: 1.371 MB / 0.7794 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.0004716/0.6918, allocations: 234.9 kB / 1.034 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001286/0.6931, allocations: 0.7462 MB / 1.034 GB, free: 396 kB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6931, allocations: 0 / 1.034 GB, free: 396 kB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006909/0.6938, allocations: 451.8 kB / 1.035 GB, free: 15.94 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.6942, allocations: 28.44 kB / 1.035 GB, free: 15.92 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003606/0.6978, allocations: 0.7963 MB / 1.036 GB, free: 15.1 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.698, allocations: 0.7181 MB / 1.036 GB, free: 14.35 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001436/0.6995, allocations: 293.5 kB / 1.037 GB, free: 14.06 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005322/0.7, allocations: 91.41 kB / 1.037 GB, free: 13.97 MB / 0.795 GB Notification: Performance of SimCode: time 2.765e-06/0.7, allocations: 0 / 1.037 GB, free: 13.97 MB / 0.795 GB Notification: Performance of Templates: time 0.01627/0.7163, allocations: 11.21 MB / 1.048 GB, free: 2.82 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches