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.0009545/0.0009545, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.0009302/0.0009302, allocations: 169 kB / 23.82 MB, free: 0.7461 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.032/1.032, allocations: 177.1 MB / 204.2 MB, free: 5.633 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.835/1.835, allocations: 377.8 MB / 0.6236 GB, free: 8.562 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.473e-06/1.473e-06, allocations: 0 / 0.8116 GB, free: 1.699 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.532e-05/1.679e-05, allocations: 7.312 kB / 0.8116 GB, free: 1.691 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001192/0.001209, allocations: 0.6349 MB / 0.8122 GB, free: 1.078 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001357/0.002566, allocations: 1.347 MB / 0.8135 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.694e-05/0.002593, allocations: 1.406 kB / 0.8135 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 1.909e-05/0.002612, allocations: 3.938 kB / 0.8135 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 1.884e-05/0.002631, allocations: 3.938 kB / 0.8135 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.00301, allocations: 80.34 kB / 0.8136 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 5.891e-05/0.003069, allocations: 23.97 kB / 0.8136 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 4.04e-05/0.00311, allocations: 0.9062 kB / 0.8136 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 3.641e-05/0.003146, allocations: 19.92 kB / 0.8137 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.334e-05/0.003209, allocations: 8.641 kB / 0.8137 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.263e-05/0.003222, allocations: 0 / 0.8137 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002858/0.003508, allocations: 120.5 kB / 0.8138 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.173e-05/0.00352, allocations: 5.25 kB / 0.8138 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.226e-05/0.003542, allocations: 15.92 kB / 0.8138 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.003688, allocations: 87.75 kB / 0.8139 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.00369, allocations: 0 / 0.8139 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.42e-07/0.003691, allocations: 2.031 kB / 0.8139 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.003694, allocations: 0 / 0.8139 GB, free: 15.36 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.0003452/0.00404, allocations: 376.1 kB / 0.8142 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.004077, allocations: 8.031 kB / 0.8143 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.305e-05/0.00412, allocations: 18.16 kB / 0.8143 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.516e-05/0.004195, allocations: 104.6 kB / 0.8144 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.004205, allocations: 9.938 kB / 0.8144 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.454e-05/0.00423, allocations: 4.375 kB / 0.8144 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.004332, allocations: 75.94 kB / 0.8145 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.004342, allocations: 8.172 kB / 0.8145 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.004352, allocations: 384 / 0.8145 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.00436, allocations: 9.406 kB / 0.8145 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.244e-05/0.004413, allocations: 15.98 kB / 0.8145 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001208/0.004534, allocations: 124.6 kB / 0.8146 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.527e-05/0.004629, allocations: 67.94 kB / 0.8147 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.012e-05/0.004659, allocations: 15.69 kB / 0.8147 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001916/0.004851, allocations: 49.66 kB / 0.8147 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.004873, allocations: 33.39 kB / 0.8148 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=8): time 8.32e-07/0.004874, allocations: 1.625 kB / 0.8148 GB, free: 14.33 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.01087/0.01575, allocations: 5.531 MB / 0.8202 GB, free: 8.73 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.01578, allocations: 55.41 kB / 0.8202 GB, free: 8.664 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.968e-05/0.01585, allocations: 153.9 kB / 0.8204 GB, free: 8.496 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 5.086e-05/0.0159, allocations: 29.7 kB / 0.8204 GB, free: 8.461 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 3.478e-05/0.01594, allocations: 126.9 kB / 0.8205 GB, free: 8.332 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 8.253e-05/0.01602, allocations: 63.42 kB / 0.8206 GB, free: 8.27 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.01619, allocations: 103.3 kB / 0.8207 GB, free: 8.16 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.0163, allocations: 496.1 kB / 0.8212 GB, free: 7.664 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/0.01672, allocations: 467.8 kB / 0.8216 GB, free: 7.207 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004082/0.01713, allocations: 465.4 kB / 0.822 GB, free: 6.754 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.01824, allocations: 1.083 MB / 0.8231 GB, free: 5.668 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.61e-07/0.01824, allocations: 0 / 0.8231 GB, free: 5.668 MB / 0.7761 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001187/0.01943, allocations: 1.103 MB / 0.8242 GB, free: 4.559 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.01944, allocations: 4 kB / 0.8242 GB, free: 4.555 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.01945, allocations: 0 / 0.8242 GB, free: 4.555 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.01946, allocations: 0 / 0.8242 GB, free: 4.555 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003939/0.01986, allocations: 95.88 kB / 0.8243 GB, free: 4.461 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.01986, allocations: 4 kB / 0.8243 GB, free: 4.457 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.02007, allocations: 4 kB / 0.8243 GB, free: 4.453 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.208e-05/0.02012, allocations: 35.98 kB / 0.8243 GB, free: 4.418 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.0001378/0.02026, allocations: 164.6 kB / 0.8245 GB, free: 4.246 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.382e-05/0.02035, allocations: 15.89 kB / 0.8245 GB, free: 4.23 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/0.02207, allocations: 1.337 MB / 0.8258 GB, free: 2.891 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.02207, allocations: 4 kB / 0.8258 GB, free: 2.887 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.02208, allocations: 0 / 0.8258 GB, free: 2.887 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.02208, allocations: 4 kB / 0.8258 GB, free: 2.883 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001809/0.02389, allocations: 1.626 MB / 0.8274 GB, free: 1.207 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.02389, allocations: 0 / 0.8274 GB, free: 1.207 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.02428, allocations: 111.9 kB / 0.8275 GB, free: 1.098 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.02429, allocations: 4 kB / 0.8275 GB, free: 1.094 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.02434, allocations: 27.98 kB / 0.8275 GB, free: 1.066 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.02434, allocations: 0 / 0.8275 GB, free: 1.066 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.02434, allocations: 4 kB / 0.8275 GB, free: 1.062 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/0.0258, allocations: 1.333 MB / 0.8288 GB, free: 15.7 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 1.386e-05/0.02581, allocations: 27.89 kB / 0.8289 GB, free: 15.68 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.534e-05/0.02587, allocations: 12 kB / 0.8289 GB, free: 15.66 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.02608, allocations: 8 kB / 0.8289 GB, free: 15.66 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.729e-05/0.02617, allocations: 39.95 kB / 0.8289 GB, free: 15.62 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.73e-05/0.02621, allocations: 32 kB / 0.8289 GB, free: 15.59 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 3.313e-05/0.02625, allocations: 119.2 kB / 0.8291 GB, free: 15.47 MB / 0.7917 GB Notification: Performance of sort global known variables: time 5.1e-08/0.02625, allocations: 0 / 0.8291 GB, free: 15.47 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.0004116/0.02666, allocations: 187.6 kB / 0.8292 GB, free: 15.29 MB / 0.7917 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.0003899/0.02705, allocations: 254.7 kB / 0.8295 GB, free: 15.03 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.00102/0.02807, allocations: 0.8801 MB / 0.8303 GB, free: 14.14 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.02807, allocations: 0 / 0.8303 GB, free: 14.14 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.0004046/0.02848, allocations: 411.4 kB / 0.8307 GB, free: 13.74 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002315/0.02871, allocations: 47.86 kB / 0.8308 GB, free: 13.69 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.03042, allocations: 0.7537 MB / 0.8315 GB, free: 12.9 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.571e-05/0.03047, allocations: 73.34 kB / 0.8316 GB, free: 12.81 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0005957/0.03106, allocations: 293.5 kB / 0.8319 GB, free: 12.53 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004009/0.03146, allocations: 92.47 kB / 0.832 GB, free: 12.44 MB / 0.7917 GB Notification: Performance of SimCode: time 5.51e-07/0.03146, allocations: 0 / 0.832 GB, free: 12.44 MB / 0.7917 GB Notification: Performance of Templates: time 0.01198/0.04344, allocations: 12.28 MB / 0.8439 GB, free: 252 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.47000275272876]