Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002222/0.002222, allocations: 83.69 kB / 20.23 MB, free: 4.188 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002516/0.002516, allocations: 165.3 kB / 23.55 MB, free: 0.8711 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.58/1.58, allocations: 177.1 MB / 203.9 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.045/3.045, allocations: 377.8 MB / 0.6232 GB, free: 8.539 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 0.8108 GB, free: 0.9141 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.735e-05/2.896e-05, allocations: 5.641 kB / 0.8109 GB, free: 0.9102 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001727/0.001756, allocations: 0.6288 MB / 0.8115 GB, free: 312 kB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.00214/0.003896, allocations: 1.325 MB / 0.8128 GB, free: 14.97 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.561e-05/0.003922, allocations: 0 / 0.8128 GB, free: 14.97 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 1.676e-05/0.003938, allocations: 3.938 kB / 0.8128 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 2.915e-05/0.003967, allocations: 5 kB / 0.8128 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004252/0.004393, allocations: 84.81 kB / 0.8128 GB, free: 14.88 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 6.062e-05/0.004453, allocations: 19.98 kB / 0.8129 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 3.622e-05/0.00449, allocations: 3.984 kB / 0.8129 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 5.014e-05/0.00454, allocations: 20.58 kB / 0.8129 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 7.077e-05/0.00461, allocations: 11.97 kB / 0.8129 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.004636, allocations: 5.25 kB / 0.8129 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003087/0.004945, allocations: 107.8 kB / 0.813 GB, free: 14.71 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 1.507e-05/0.00496, allocations: 3.984 kB / 0.813 GB, free: 14.71 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 3.029e-05/0.00499, allocations: 18.36 kB / 0.813 GB, free: 14.7 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.005187, allocations: 87.75 kB / 0.8131 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.005191, allocations: 0 / 0.8131 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.152e-06/0.005192, allocations: 0 / 0.8131 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.005196, allocations: 4 kB / 0.8131 GB, free: 14.61 MB / 0.7292 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.000561/0.005757, allocations: 376.1 kB / 0.8135 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.005797, allocations: 9.531 kB / 0.8135 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.04e-05/0.005848, allocations: 8.938 kB / 0.8135 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.005969, allocations: 112.6 kB / 0.8136 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.005981, allocations: 0.9062 kB / 0.8136 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.762e-05/0.006009, allocations: 12.33 kB / 0.8136 GB, free: 14.04 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.006153, allocations: 76.94 kB / 0.8137 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.006164, allocations: 192 / 0.8137 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-06/0.006174, allocations: 384 / 0.8137 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.006183, allocations: 12.56 kB / 0.8137 GB, free: 13.94 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.308e-05/0.006266, allocations: 24.5 kB / 0.8137 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001911/0.006457, allocations: 128.6 kB / 0.8138 GB, free: 13.76 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.006612, allocations: 68.36 kB / 0.8139 GB, free: 13.68 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.198e-05/0.006664, allocations: 23.67 kB / 0.8139 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002661/0.006931, allocations: 49.11 kB / 0.814 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.006969, allocations: 34.33 kB / 0.814 GB, free: 13.56 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=8): time 9.61e-07/0.00697, allocations: 0 / 0.814 GB, free: 13.56 MB / 0.7292 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.02229/0.02926, allocations: 6.002 MB / 0.8199 GB, free: 7.492 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.02931, allocations: 51.41 kB / 0.8199 GB, free: 7.43 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.02943, allocations: 153.9 kB / 0.8201 GB, free: 7.262 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 8.028e-05/0.02951, allocations: 33.69 kB / 0.8201 GB, free: 7.223 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.888e-05/0.02958, allocations: 131 kB / 0.8202 GB, free: 7.09 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.02971, allocations: 59.48 kB / 0.8203 GB, free: 7.031 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002755/0.02999, allocations: 99.33 kB / 0.8204 GB, free: 6.926 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0002592/0.03024, allocations: 0.4923 MB / 0.8209 GB, free: 6.422 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000836/0.03108, allocations: 0.5506 MB / 0.8214 GB, free: 5.871 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/0.03213, allocations: 0.5468 MB / 0.8219 GB, free: 5.324 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/0.03433, allocations: 1.278 MB / 0.8232 GB, free: 4.043 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.03433, allocations: 0 / 0.8232 GB, free: 4.043 MB / 0.7292 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002327/0.03666, allocations: 1.306 MB / 0.8245 GB, free: 2.73 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.03668, allocations: 4.781 kB / 0.8245 GB, free: 2.727 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.03668, allocations: 0 / 0.8245 GB, free: 2.727 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.0367, allocations: 8 kB / 0.8245 GB, free: 2.719 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008979/0.0376, allocations: 95.88 kB / 0.8246 GB, free: 2.625 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.0376, allocations: 0 / 0.8246 GB, free: 2.625 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005605/0.03816, allocations: 8 kB / 0.8246 GB, free: 2.617 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.792e-05/0.03825, allocations: 31.98 kB / 0.8246 GB, free: 2.586 MB / 0.7292 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.0002459/0.0385, allocations: 164.6 kB / 0.8248 GB, free: 2.414 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.03864, allocations: 19.89 kB / 0.8248 GB, free: 2.395 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003615/0.04225, allocations: 1.513 MB / 0.8263 GB, free: 0.875 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.04226, allocations: 4 kB / 0.8263 GB, free: 0.8711 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.04226, allocations: 4 kB / 0.8263 GB, free: 0.8672 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.04227, allocations: 3.984 kB / 0.8263 GB, free: 0.8633 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/0.04567, allocations: 1.849 MB / 0.8281 GB, free: 14.96 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.04568, allocations: 4 kB / 0.8281 GB, free: 14.96 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008504/0.04653, allocations: 107.9 kB / 0.8282 GB, free: 14.86 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.776e-06/0.04654, allocations: 12.02 kB / 0.8282 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.476e-05/0.04661, allocations: 24 kB / 0.8282 GB, free: 14.82 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.04662, allocations: 4 kB / 0.8282 GB, free: 14.82 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.04662, allocations: 0 / 0.8282 GB, free: 14.82 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003128/0.04974, allocations: 1.688 MB / 0.8299 GB, free: 13.1 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.871e-05/0.04976, allocations: 15.89 kB / 0.8299 GB, free: 13.09 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.474e-05/0.04986, allocations: 8 kB / 0.8299 GB, free: 13.08 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005385/0.0504, allocations: 8 kB / 0.8299 GB, free: 13.07 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.05056, allocations: 43.95 kB / 0.8299 GB, free: 13.03 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.361e-05/0.05064, allocations: 35.98 kB / 0.83 GB, free: 12.99 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.816e-05/0.05071, allocations: 123.2 kB / 0.8301 GB, free: 12.87 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.05071, allocations: 0 / 0.8301 GB, free: 12.87 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0006148/0.05132, allocations: 183.6 kB / 0.8303 GB, free: 12.69 MB / 0.7448 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.0005576/0.05188, allocations: 250.7 kB / 0.8305 GB, free: 12.44 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001721/0.0536, allocations: 1.044 MB / 0.8315 GB, free: 11.39 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.05361, allocations: 8 kB / 0.8315 GB, free: 11.38 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000803/0.05441, allocations: 483.4 kB / 0.832 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.05474, allocations: 47.91 kB / 0.832 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003818/0.05856, allocations: 0.8476 MB / 0.8329 GB, free: 9.977 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001077/0.05867, allocations: 99.31 kB / 0.833 GB, free: 9.863 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.00109/0.05976, allocations: 297.5 kB / 0.8332 GB, free: 9.574 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000573/0.06033, allocations: 96.47 kB / 0.8333 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of SimCode: time 7.72e-07/0.06033, allocations: 0 / 0.8333 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of Templates: time 0.0213/0.08163, allocations: 12.27 MB / 0.8453 GB, free: 13.3 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.098826423054561]