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.00158/0.00158, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.001799/0.001799, allocations: 165.2 kB / 24.86 MB, free: 8.895 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.026/1.026, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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 1.832/1.832, allocations: 377.9 MB / 0.6247 GB, free: 8.41 MB / 0.5886 GB " [Timeout remaining time 178] 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.332e-06/1.332e-06, allocations: 0 / 0.8128 GB, free: 1.395 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.329e-05/1.462e-05, allocations: 2.312 kB / 0.8128 GB, free: 1.391 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001048/0.001062, allocations: 0.634 MB / 0.8135 GB, free: 0.7773 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001277/0.002339, allocations: 1.339 MB / 0.8148 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.314e-05/0.002363, allocations: 0 / 0.8148 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 1.535e-05/0.002378, allocations: 3.938 kB / 0.8148 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.007e-05/0.002398, allocations: 1.094 kB / 0.8148 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.002702, allocations: 79.61 kB / 0.8148 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 5.043e-05/0.002752, allocations: 25.41 kB / 0.8149 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.575e-05/0.002788, allocations: 0 / 0.8149 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 3.328e-05/0.002821, allocations: 19.92 kB / 0.8149 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.249e-05/0.002884, allocations: 11.97 kB / 0.8149 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.002896, allocations: 6.25 kB / 0.8149 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002023/0.003098, allocations: 115.8 kB / 0.815 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.246e-05/0.003111, allocations: 4 kB / 0.815 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 1.693e-05/0.003128, allocations: 15.91 kB / 0.815 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.003257, allocations: 79.83 kB / 0.8151 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.003258, allocations: 0.5312 kB / 0.8151 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of FrontEnd: time 4.61e-07/0.003259, allocations: 0 / 0.8151 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.003262, allocations: 0.7188 kB / 0.8151 GB, free: 15.07 MB / 0.7761 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.0003177/0.00358, allocations: 384.6 kB / 0.8155 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.003613, allocations: 9.625 kB / 0.8155 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.111e-05/0.003644, allocations: 13.23 kB / 0.8155 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.607e-05/0.00372, allocations: 108.6 kB / 0.8156 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.003732, allocations: 4.312 kB / 0.8156 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.003749, allocations: 5 kB / 0.8156 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.219e-05/0.003831, allocations: 71.94 kB / 0.8157 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.003841, allocations: 5 kB / 0.8157 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-06/0.003848, allocations: 384 / 0.8157 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.003855, allocations: 4.5 kB / 0.8157 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.146e-05/0.003896, allocations: 20.58 kB / 0.8157 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.583e-05/0.003992, allocations: 105.2 kB / 0.8158 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 7.871e-05/0.004071, allocations: 63.66 kB / 0.8159 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.116e-05/0.004092, allocations: 21.28 kB / 0.8159 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001555/0.004248, allocations: 41.7 kB / 0.8159 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.131e-05/0.004269, allocations: 37.39 kB / 0.816 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.00427, allocations: 0 / 0.816 GB, free: 14.08 MB / 0.7761 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.01038/0.01465, allocations: 5.206 MB / 0.821 GB, free: 8.793 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.01469, allocations: 51.41 kB / 0.8211 GB, free: 8.73 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.938e-05/0.01475, allocations: 153.9 kB / 0.8212 GB, free: 8.562 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.535e-05/0.01481, allocations: 29.7 kB / 0.8213 GB, free: 8.527 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 3.075e-05/0.01484, allocations: 126.9 kB / 0.8214 GB, free: 8.398 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 9.12e-05/0.01493, allocations: 59.47 kB / 0.8214 GB, free: 8.34 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.01509, allocations: 99.3 kB / 0.8215 GB, free: 8.234 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.0152, allocations: 0.4884 MB / 0.822 GB, free: 7.734 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003037/0.01551, allocations: 396 kB / 0.8224 GB, free: 7.348 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002903/0.0158, allocations: 395.9 kB / 0.8228 GB, free: 6.961 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.01693, allocations: 0.9523 MB / 0.8237 GB, free: 6.008 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.01694, allocations: 0 / 0.8237 GB, free: 6.008 MB / 0.7761 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0009441/0.01788, allocations: 0.97 MB / 0.8247 GB, free: 5.031 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.01789, allocations: 4 kB / 0.8247 GB, free: 5.027 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.0179, allocations: 0 / 0.8247 GB, free: 5.027 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.055e-06/0.0179, allocations: 0 / 0.8247 GB, free: 5.027 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003953/0.0183, allocations: 95.88 kB / 0.8247 GB, free: 4.934 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.447e-06/0.0183, allocations: 4 kB / 0.8248 GB, free: 4.93 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.01851, allocations: 8 kB / 0.8248 GB, free: 4.922 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.232e-05/0.01857, allocations: 35.98 kB / 0.8248 GB, free: 4.887 MB / 0.7761 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.0001376/0.0187, allocations: 160.6 kB / 0.8249 GB, free: 4.719 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.616e-05/0.0188, allocations: 23.88 kB / 0.825 GB, free: 4.695 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.02036, allocations: 1.212 MB / 0.8262 GB, free: 3.48 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.02036, allocations: 4 kB / 0.8262 GB, free: 3.477 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.02037, allocations: 0 / 0.8262 GB, free: 3.477 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.02037, allocations: 0 / 0.8262 GB, free: 3.477 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001482/0.02185, allocations: 1.494 MB / 0.8276 GB, free: 1.941 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.706e-06/0.02186, allocations: 4 kB / 0.8276 GB, free: 1.938 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/0.02223, allocations: 107.9 kB / 0.8277 GB, free: 1.832 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.02223, allocations: 0 / 0.8277 GB, free: 1.832 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.02228, allocations: 28 kB / 0.8277 GB, free: 1.805 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.02228, allocations: 3.984 kB / 0.8278 GB, free: 1.801 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.02228, allocations: 0 / 0.8278 GB, free: 1.801 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.02341, allocations: 1.142 MB / 0.8289 GB, free: 0.6328 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.288e-05/0.02342, allocations: 15.89 kB / 0.8289 GB, free: 0.6172 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.999e-05/0.02348, allocations: 7.984 kB / 0.8289 GB, free: 0.6094 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.0237, allocations: 16 kB / 0.8289 GB, free: 0.5938 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.439e-05/0.02378, allocations: 39.95 kB / 0.8289 GB, free: 0.5547 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.491e-05/0.02383, allocations: 28 kB / 0.829 GB, free: 0.5273 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 2.792e-05/0.02385, allocations: 119.2 kB / 0.8291 GB, free: 420 kB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.02385, allocations: 0 / 0.8291 GB, free: 420 kB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003947/0.02425, allocations: 183.7 kB / 0.8293 GB, free: 236 kB / 0.7761 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.0003601/0.02461, allocations: 258.8 kB / 0.8295 GB, free: 15.97 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.000657/0.02527, allocations: 0.7453 MB / 0.8302 GB, free: 15.22 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.02527, allocations: 4 kB / 0.8302 GB, free: 15.21 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.0003007/0.02557, allocations: 351.3 kB / 0.8306 GB, free: 14.87 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.02579, allocations: 35.94 kB / 0.8306 GB, free: 14.83 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.0276, allocations: 0.7042 MB / 0.8313 GB, free: 14.09 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.029e-05/0.02764, allocations: 77.28 kB / 0.8314 GB, free: 14 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.000628/0.02826, allocations: 293.5 kB / 0.8316 GB, free: 13.71 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005299/0.02879, allocations: 166.2 kB / 0.8318 GB, free: 13.55 MB / 0.7917 GB Notification: Performance of SimCode: time 5.81e-07/0.02879, allocations: 0 / 0.8318 GB, free: 13.55 MB / 0.7917 GB Notification: Performance of Templates: time 0.01251/0.0413, allocations: 13.3 MB / 0.8448 GB, free: 336 kB / 0.7917 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.171599121298641]