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.007539/0.007539, allocations: 98.17 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 193.5 kB / 16.68 MB, free: 5.969 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.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.578/2.578, allocations: 437 MB / 0.7105 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 71.88 kB / 1.019 GB, free: 9.332 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7849/0.7862, allocations: 151.6 MB / 1.167 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001723/0.7879, allocations: 0.6137 MB / 1.167 GB, free: 3.156 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001614/0.7896, allocations: 1.283 MB / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.264e-05/0.7896, allocations: 0 / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.859e-05/0.7896, allocations: 0 / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.238e-05/0.7896, allocations: 0 / 1.169 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.79, allocations: 91.59 kB / 1.169 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.127e-05/0.7901, allocations: 15.98 kB / 1.169 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.875e-05/0.7901, allocations: 4 kB / 1.169 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.156e-05/0.7902, allocations: 8 kB / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.512e-05/0.7903, allocations: 15.91 kB / 1.169 GB, free: 1.727 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.7903, allocations: 4 kB / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002282/0.7905, allocations: 107.9 kB / 1.169 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.254e-05/0.7905, allocations: 0 / 1.169 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.967e-05/0.7906, allocations: 15.92 kB / 1.169 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.7907, allocations: 67.38 kB / 1.169 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.7907, allocations: 3.938 kB / 1.169 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.182e-06/0.7907, allocations: 0 / 1.169 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.7907, allocations: 0 / 1.169 GB, free: 1.535 MB / 0.8887 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.0005009/0.7912, allocations: 356.2 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.7913, allocations: 15.97 kB / 1.169 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.333e-05/0.7913, allocations: 4.938 kB / 1.169 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.7915, allocations: 168.3 kB / 1.169 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.7915, allocations: 4.375 kB / 1.169 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.7915, allocations: 12.33 kB / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.7916, allocations: 57.97 kB / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.7917, allocations: 0 / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.7917, allocations: 4 kB / 1.169 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.7917, allocations: 0 / 1.169 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.704e-05/0.7918, allocations: 23.98 kB / 1.169 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001774/0.7919, allocations: 165.7 kB / 1.17 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.7921, allocations: 62.5 kB / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.676e-05/0.7921, allocations: 20.86 kB / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005073/0.7926, allocations: 0.5622 MB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.7927, allocations: 34.5 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.7927, allocations: 0 / 1.17 GB, free: 15.77 MB / 0.9044 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.02041/0.8131, allocations: 4.372 MB / 1.175 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.8132, allocations: 63.19 kB / 1.175 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.874e-05/0.8133, allocations: 97.86 kB / 1.175 GB, free: 11.06 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 7.354e-05/0.8133, allocations: 29.83 kB / 1.175 GB, free: 11.03 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.433e-05/0.8134, allocations: 80.14 kB / 1.175 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.8135, allocations: 63.47 kB / 1.175 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/0.8138, allocations: 93.66 kB / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.8139, allocations: 318.8 kB / 1.175 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005276/0.8144, allocations: 311.9 kB / 1.176 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005326/0.815, allocations: 314.3 kB / 1.176 GB, free: 9.855 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.8166, allocations: 0.7741 MB / 1.177 GB, free: 9.078 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.8166, allocations: 4 kB / 1.177 GB, free: 9.074 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001616/0.8182, allocations: 0.8006 MB / 1.177 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.8182, allocations: 4 kB / 1.177 GB, free: 8.266 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.8182, allocations: 0 / 1.177 GB, free: 8.266 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.8183, allocations: 0 / 1.177 GB, free: 8.266 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008879/0.8191, allocations: 95.88 kB / 1.177 GB, free: 8.172 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.8192, allocations: 4 kB / 1.177 GB, free: 8.168 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005635/0.8197, allocations: 4 kB / 1.177 GB, free: 8.164 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.289e-05/0.8198, allocations: 35.98 kB / 1.178 GB, free: 8.129 MB / 0.9044 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.0001959/0.82, allocations: 121.8 kB / 1.178 GB, free: 8 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.853e-05/0.8201, allocations: 7.953 kB / 1.178 GB, free: 7.992 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003021/0.8232, allocations: 1.4 MB / 1.179 GB, free: 6.578 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.8232, allocations: 4 kB / 1.179 GB, free: 6.574 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.8232, allocations: 0 / 1.179 GB, free: 6.574 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.8232, allocations: 0 / 1.179 GB, free: 6.574 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002951/0.8262, allocations: 1.818 MB / 1.181 GB, free: 4.699 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.8262, allocations: 3.984 kB / 1.181 GB, free: 4.695 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008138/0.827, allocations: 103.9 kB / 1.181 GB, free: 4.594 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.775e-06/0.827, allocations: 4 kB / 1.181 GB, free: 4.59 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.03e-05/0.8271, allocations: 27.94 kB / 1.181 GB, free: 4.562 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.8271, allocations: 8 kB / 1.181 GB, free: 4.555 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.8271, allocations: 0 / 1.181 GB, free: 4.555 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/0.8294, allocations: 1.47 MB / 1.182 GB, free: 3.062 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.337e-05/0.8295, allocations: 89.03 kB / 1.182 GB, free: 2.957 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.781e-05/0.8296, allocations: 11.94 kB / 1.182 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000549/0.8301, allocations: 12 kB / 1.182 GB, free: 2.934 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.8303, allocations: 43.95 kB / 1.183 GB, free: 2.891 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.847e-05/0.8304, allocations: 31.94 kB / 1.183 GB, free: 2.859 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.76e-05/0.8304, allocations: 83.34 kB / 1.183 GB, free: 2.777 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8304, allocations: 0 / 1.183 GB, free: 2.777 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000627/0.8311, allocations: 179.7 kB / 1.183 GB, free: 2.602 MB / 0.9044 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.0005694/0.8316, allocations: 231.3 kB / 1.183 GB, free: 2.367 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001379/0.833, allocations: 0.7261 MB / 1.184 GB, free: 1.641 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.833, allocations: 0 / 1.184 GB, free: 1.641 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0007145/0.8338, allocations: 451.7 kB / 1.184 GB, free: 1.199 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.8341, allocations: 26.41 kB / 1.184 GB, free: 1.176 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.8377, allocations: 0.8 MB / 1.185 GB, free: 348 kB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.8381, allocations: 0.7142 MB / 1.186 GB, free: 15.6 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001045/0.8392, allocations: 297.5 kB / 1.186 GB, free: 15.31 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005312/0.8397, allocations: 91.41 kB / 1.186 GB, free: 15.22 MB / 0.92 GB Notification: Performance of SimCode: time 2.474e-06/0.8397, allocations: 0 / 1.186 GB, free: 15.22 MB / 0.92 GB Notification: Performance of Templates: time 0.01696/0.8567, allocations: 11.26 MB / 1.197 GB, free: 4.027 MB / 0.92 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