Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001557/0.001557, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.00196/0.00196, allocations: 173 kB / 23.49 MB, free: 1.059 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 0.9726/0.9726, allocations: 177.1 MB / 203.8 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.187/2.187, allocations: 429.5 MB / 0.6736 GB, free: 4.047 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 0.8782 GB, free: 6.57 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.711e-05/2.894e-05, allocations: 2.312 kB / 0.8783 GB, free: 6.566 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001255/0.001284, allocations: 0.6339 MB / 0.8789 GB, free: 5.953 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.002672, allocations: 1.342 MB / 0.8802 GB, free: 4.602 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.499e-05/0.002697, allocations: 0 / 0.8802 GB, free: 4.602 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.702e-05/0.002714, allocations: 3.938 kB / 0.8802 GB, free: 4.598 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 1.909e-05/0.002733, allocations: 0 / 0.8802 GB, free: 4.598 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003614/0.003094, allocations: 88.61 kB / 0.8803 GB, free: 4.512 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 5.905e-05/0.003154, allocations: 25.06 kB / 0.8803 GB, free: 4.488 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.176e-05/0.003195, allocations: 4 kB / 0.8803 GB, free: 4.484 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 3.675e-05/0.003232, allocations: 15.92 kB / 0.8803 GB, free: 4.469 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.558e-05/0.003298, allocations: 8.641 kB / 0.8803 GB, free: 4.461 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.003313, allocations: 4 kB / 0.8803 GB, free: 4.457 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002282/0.003541, allocations: 116.4 kB / 0.8804 GB, free: 4.344 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.022e-05/0.003551, allocations: 0.9375 kB / 0.8804 GB, free: 4.344 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.194e-05/0.003573, allocations: 11.94 kB / 0.8804 GB, free: 4.332 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.003721, allocations: 87.75 kB / 0.8805 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.003723, allocations: 5.156 kB / 0.8805 GB, free: 4.242 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.31e-07/0.003724, allocations: 0 / 0.8805 GB, free: 4.242 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.003728, allocations: 0 / 0.8805 GB, free: 4.242 MB / 0.8386 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.0003849/0.004113, allocations: 381.4 kB / 0.8809 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.004151, allocations: 8.031 kB / 0.8809 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.479e-05/0.004196, allocations: 10.06 kB / 0.8809 GB, free: 3.82 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.593e-05/0.004282, allocations: 112.6 kB / 0.881 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.004293, allocations: 1.5 kB / 0.881 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.589e-05/0.004319, allocations: 12.36 kB / 0.881 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.004433, allocations: 75.89 kB / 0.8811 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.004443, allocations: 3.344 kB / 0.8811 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.004453, allocations: 384 / 0.8811 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.004461, allocations: 3.938 kB / 0.8811 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.172e-05/0.004513, allocations: 27.95 kB / 0.8811 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001302/0.004643, allocations: 124.6 kB / 0.8813 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.004743, allocations: 62.98 kB / 0.8813 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.403e-05/0.004777, allocations: 23.67 kB / 0.8813 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000198/0.004975, allocations: 41.34 kB / 0.8814 GB, free: 3.258 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.004998, allocations: 37.33 kB / 0.8814 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.005, allocations: 0.5 kB / 0.8814 GB, free: 3.211 MB / 0.8386 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.01188/0.01688, allocations: 5.542 MB / 0.8868 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/0.01692, allocations: 55.41 kB / 0.8869 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.974e-05/0.01699, allocations: 153.9 kB / 0.887 GB, free: 13.32 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.763e-05/0.01705, allocations: 25.7 kB / 0.8871 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.465e-05/0.01709, allocations: 130.9 kB / 0.8872 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.157e-05/0.01718, allocations: 59.39 kB / 0.8872 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/0.01735, allocations: 99.33 kB / 0.8873 GB, free: 13 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.01747, allocations: 0.4924 MB / 0.8878 GB, free: 12.5 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004343/0.0179, allocations: 463.8 kB / 0.8883 GB, free: 12.04 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006304/0.01853, allocations: 467.9 kB / 0.8887 GB, free: 11.59 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.01967, allocations: 1.068 MB / 0.8897 GB, free: 10.52 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.01967, allocations: 0 / 0.8897 GB, free: 10.52 MB / 0.8542 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001191/0.02087, allocations: 1.118 MB / 0.8908 GB, free: 9.391 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.02089, allocations: 6.344 kB / 0.8908 GB, free: 9.387 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.02089, allocations: 4 kB / 0.8908 GB, free: 9.383 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.02091, allocations: 0 / 0.8908 GB, free: 9.383 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003954/0.02131, allocations: 87.95 kB / 0.8909 GB, free: 9.297 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.02131, allocations: 3.984 kB / 0.8909 GB, free: 9.293 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.02153, allocations: 16 kB / 0.8909 GB, free: 9.277 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.891e-05/0.02157, allocations: 27.98 kB / 0.891 GB, free: 9.25 MB / 0.8542 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.0001481/0.02172, allocations: 164.5 kB / 0.8911 GB, free: 9.078 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.02182, allocations: 19.89 kB / 0.8912 GB, free: 9.059 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001881/0.0237, allocations: 1.329 MB / 0.8924 GB, free: 7.723 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.02371, allocations: 11.97 kB / 0.8925 GB, free: 7.711 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.02372, allocations: 0 / 0.8925 GB, free: 7.711 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.02372, allocations: 0 / 0.8925 GB, free: 7.711 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/0.02553, allocations: 1.63 MB / 0.8941 GB, free: 6.035 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.02553, allocations: 4 kB / 0.8941 GB, free: 6.031 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003805/0.02591, allocations: 103.9 kB / 0.8942 GB, free: 5.93 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.02592, allocations: 4 kB / 0.8942 GB, free: 5.926 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.602e-05/0.02596, allocations: 28 kB / 0.8942 GB, free: 5.898 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.02597, allocations: 4 kB / 0.8942 GB, free: 5.895 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.02597, allocations: 8.016 kB / 0.8942 GB, free: 5.887 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.0277, allocations: 1.329 MB / 0.8955 GB, free: 4.531 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.544e-05/0.02772, allocations: 15.84 kB / 0.8955 GB, free: 4.516 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.496e-05/0.02778, allocations: 12 kB / 0.8955 GB, free: 4.504 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.02801, allocations: 11.98 kB / 0.8955 GB, free: 4.492 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.02812, allocations: 47.89 kB / 0.8956 GB, free: 4.445 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.536e-05/0.02816, allocations: 28 kB / 0.8956 GB, free: 4.418 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.389e-05/0.0282, allocations: 119.2 kB / 0.8957 GB, free: 4.301 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.0282, allocations: 0 / 0.8957 GB, free: 4.301 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004449/0.02864, allocations: 195.6 kB / 0.8959 GB, free: 4.109 MB / 0.8542 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.0004065/0.02905, allocations: 250.8 kB / 0.8961 GB, free: 3.855 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0008936/0.02994, allocations: 0.8704 MB / 0.897 GB, free: 2.98 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.02994, allocations: 0 / 0.897 GB, free: 2.98 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003922/0.03034, allocations: 411.4 kB / 0.8974 GB, free: 2.574 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.03058, allocations: 36 kB / 0.8974 GB, free: 2.539 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001737/0.03232, allocations: 0.7614 MB / 0.8982 GB, free: 1.742 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.708e-05/0.03237, allocations: 73.34 kB / 0.8982 GB, free: 1.652 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0006489/0.03301, allocations: 293.5 kB / 0.8985 GB, free: 1.363 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003704/0.03338, allocations: 100.4 kB / 0.8986 GB, free: 1.266 MB / 0.8542 GB Notification: Performance of SimCode: time 1.062e-06/0.03339, allocations: 0 / 0.8986 GB, free: 1.266 MB / 0.8542 GB Notification: Performance of Templates: time 0.01264/0.04603, allocations: 12.28 MB / 0.9106 GB, free: 5.062 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.5803313460201025]