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.0008766/0.0008766, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.0009947/0.0009947, allocations: 181 kB / 23.36 MB, free: 1.133 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.015/1.015, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.387/2.387, allocations: 438.8 MB / 0.6827 GB, free: 13.59 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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.513e-06/1.513e-06, allocations: 0 / 0.8386 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.271e-05/2.423e-05, allocations: 10.25 kB / 0.8386 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001271/0.001295, allocations: 0.6417 MB / 0.8393 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.002698, allocations: 1.349 MB / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.222e-05/0.00272, allocations: 0 / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 1.373e-05/0.002734, allocations: 0 / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 2.054e-05/0.002754, allocations: 0 / 0.8406 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003727/0.003127, allocations: 87.53 kB / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 5.714e-05/0.003184, allocations: 19.98 kB / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 4.081e-05/0.003225, allocations: 3.984 kB / 0.8407 GB, free: 12.03 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 3.656e-05/0.003261, allocations: 19.98 kB / 0.8407 GB, free: 12.01 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 6.492e-05/0.003326, allocations: 11.92 kB / 0.8407 GB, free: 12 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.003341, allocations: 4 kB / 0.8407 GB, free: 12 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000225/0.003566, allocations: 111.8 kB / 0.8408 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.207e-05/0.003578, allocations: 4 kB / 0.8408 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.585e-05/0.003594, allocations: 11.98 kB / 0.8408 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.000132/0.003726, allocations: 87.75 kB / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.003728, allocations: 0 / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of FrontEnd: time 8.62e-07/0.003729, allocations: 0 / 0.8409 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.587e-06/0.003732, allocations: 0 / 0.8409 GB, free: 11.79 MB / 0.8073 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.0003885/0.004121, allocations: 264.7 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.004163, allocations: 8.625 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.9e-05/0.004192, allocations: 4.938 kB / 0.8412 GB, free: 11.49 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.616e-05/0.004278, allocations: 109.7 kB / 0.8413 GB, free: 11.36 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.004289, allocations: 384 / 0.8413 GB, free: 11.36 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.004316, allocations: 8.375 kB / 0.8413 GB, free: 11.35 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.798e-05/0.004404, allocations: 71.94 kB / 0.8414 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.004413, allocations: 192 / 0.8414 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.004422, allocations: 4.375 kB / 0.8414 GB, free: 11.27 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.004428, allocations: 3.938 kB / 0.8414 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.45e-05/0.004472, allocations: 19.97 kB / 0.8414 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.349e-05/0.004566, allocations: 80.98 kB / 0.8415 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.397e-05/0.00464, allocations: 42.5 kB / 0.8415 GB, free: 11.1 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.738e-05/0.004667, allocations: 20.84 kB / 0.8415 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001724/0.004839, allocations: 44.17 kB / 0.8416 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.005e-05/0.004859, allocations: 30.56 kB / 0.8416 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.004861, allocations: 0 / 0.8416 GB, free: 10.99 MB / 0.8073 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.009704/0.01456, allocations: 4.711 MB / 0.8462 GB, free: 6.18 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.01461, allocations: 55.41 kB / 0.8463 GB, free: 6.113 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.896e-05/0.01468, allocations: 102.6 kB / 0.8464 GB, free: 6 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 6.166e-05/0.01474, allocations: 29.7 kB / 0.8464 GB, free: 5.965 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.444e-05/0.01476, allocations: 84.14 kB / 0.8465 GB, free: 5.879 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.619e-05/0.01485, allocations: 55.47 kB / 0.8465 GB, free: 5.824 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.01498, allocations: 45.66 kB / 0.8466 GB, free: 5.773 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.979e-05/0.01508, allocations: 318.8 kB / 0.8469 GB, free: 5.453 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.01535, allocations: 312 kB / 0.8472 GB, free: 5.148 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.01561, allocations: 318 kB / 0.8475 GB, free: 4.84 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008143/0.01642, allocations: 0.7975 MB / 0.8483 GB, free: 4.039 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.01642, allocations: 0 / 0.8483 GB, free: 4.039 MB / 0.8073 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0007268/0.01715, allocations: 0.7419 MB / 0.849 GB, free: 3.293 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.01717, allocations: 11.94 kB / 0.849 GB, free: 3.281 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.01718, allocations: 0 / 0.849 GB, free: 3.281 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.01719, allocations: 3.938 kB / 0.849 GB, free: 3.277 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.01751, allocations: 43.94 kB / 0.849 GB, free: 3.234 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.036e-06/0.01751, allocations: 0 / 0.849 GB, free: 3.234 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.01767, allocations: 8 kB / 0.849 GB, free: 3.227 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.993e-05/0.01771, allocations: 19.91 kB / 0.8491 GB, free: 3.207 MB / 0.8073 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.000138/0.01785, allocations: 121.8 kB / 0.8492 GB, free: 3.078 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.264e-05/0.01792, allocations: 11.94 kB / 0.8492 GB, free: 3.066 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.01922, allocations: 0.966 MB / 0.8501 GB, free: 2.09 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.01923, allocations: 4 kB / 0.8501 GB, free: 2.086 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.01923, allocations: 0 / 0.8501 GB, free: 2.086 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.01924, allocations: 3.984 kB / 0.8501 GB, free: 2.082 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001198/0.02043, allocations: 0.9726 MB / 0.8511 GB, free: 1.082 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.02044, allocations: 0 / 0.8511 GB, free: 1.082 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.02074, allocations: 71.91 kB / 0.8512 GB, free: 1.012 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.02075, allocations: 4 kB / 0.8512 GB, free: 1.008 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.18e-05/0.02078, allocations: 7.984 kB / 0.8512 GB, free: 1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.02078, allocations: 4 kB / 0.8512 GB, free: 0.9961 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.02078, allocations: 0 / 0.8512 GB, free: 0.9961 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009/0.02168, allocations: 0.8723 MB / 0.852 GB, free: 108 kB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.771e-05/0.0217, allocations: 15.84 kB / 0.852 GB, free: 92 kB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.472e-05/0.02176, allocations: 12.06 kB / 0.8521 GB, free: 80 kB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.02194, allocations: 8 kB / 0.8521 GB, free: 72 kB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/0.02201, allocations: 23.95 kB / 0.8521 GB, free: 48 kB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.432e-05/0.02204, allocations: 19.97 kB / 0.8521 GB, free: 28 kB / 0.8073 GB Notification: Performance of sorting global known variables: time 9.969e-06/0.02205, allocations: 4.859 kB / 0.8521 GB, free: 20 kB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.02205, allocations: 0 / 0.8521 GB, free: 20 kB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0004101/0.02246, allocations: 179.7 kB / 0.8523 GB, free: 15.84 MB / 0.823 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.0003723/0.02283, allocations: 231.9 kB / 0.8525 GB, free: 15.61 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0005563/0.02339, allocations: 0.5756 MB / 0.8531 GB, free: 15.03 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.02339, allocations: 0 / 0.8531 GB, free: 15.03 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005231/0.02392, allocations: 260.6 kB / 0.8533 GB, free: 14.77 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001775/0.0241, allocations: 27.92 kB / 0.8533 GB, free: 14.75 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.02538, allocations: 0.5217 MB / 0.8538 GB, free: 14.2 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.075e-05/0.02542, allocations: 77.28 kB / 0.8539 GB, free: 14.1 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0006042/0.02603, allocations: 297.5 kB / 0.8542 GB, free: 13.81 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004749/0.0265, allocations: 87.34 kB / 0.8543 GB, free: 13.72 MB / 0.823 GB Notification: Performance of SimCode: time 9.02e-07/0.0265, allocations: 0 / 0.8543 GB, free: 13.72 MB / 0.823 GB Notification: Performance of Templates: time 0.01433/0.04083, allocations: 12.93 MB / 0.8669 GB, free: 0.832 MB / 0.823 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.499167866073549]