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.00132/0.00132, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001454/0.001454, allocations: 173 kB / 23.02 MB, free: 1.551 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.023/1.023, allocations: 177.2 MB / 203.4 MB, free: 5.637 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.022/2.022, allocations: 429.5 MB / 0.6732 GB, free: 4.059 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.403e-06/1.403e-06, allocations: 0 / 0.8782 GB, free: 6.289 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.409e-05/2.549e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.285 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00126/0.001285, allocations: 0.6456 MB / 0.8789 GB, free: 5.66 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001406/0.002691, allocations: 1.348 MB / 0.8802 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.591e-05/0.002717, allocations: 0 / 0.8802 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.108e-05/0.002738, allocations: 0 / 0.8802 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 2.167e-05/0.00276, allocations: 5.031 kB / 0.8802 GB, free: 4.297 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003849/0.003145, allocations: 84.72 kB / 0.8803 GB, free: 4.215 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 6.162e-05/0.003206, allocations: 27.91 kB / 0.8803 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.647e-05/0.003243, allocations: 4 kB / 0.8803 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 3.219e-05/0.003275, allocations: 9.078 kB / 0.8803 GB, free: 4.176 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.44e-05/0.00335, allocations: 15.97 kB / 0.8803 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.003367, allocations: 4 kB / 0.8803 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002378/0.003604, allocations: 112.5 kB / 0.8804 GB, free: 4.047 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.415e-05/0.003618, allocations: 5.469 kB / 0.8804 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.018e-05/0.003639, allocations: 7.984 kB / 0.8804 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.003785, allocations: 83.81 kB / 0.8805 GB, free: 3.953 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.003788, allocations: 3.938 kB / 0.8805 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.122e-06/0.003789, allocations: 4.875 kB / 0.8805 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.003793, allocations: 0 / 0.8805 GB, free: 3.945 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.0003758/0.004169, allocations: 385.5 kB / 0.8809 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.004205, allocations: 8.031 kB / 0.8809 GB, free: 3.527 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.182e-05/0.004247, allocations: 8.875 kB / 0.8809 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.708e-05/0.004324, allocations: 109.2 kB / 0.881 GB, free: 3.387 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.004336, allocations: 5.031 kB / 0.881 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.319e-05/0.004359, allocations: 4.375 kB / 0.881 GB, free: 3.379 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.004466, allocations: 77.44 kB / 0.8811 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.004476, allocations: 192 / 0.8811 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.004487, allocations: 4.375 kB / 0.8811 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.004495, allocations: 3.938 kB / 0.8811 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.893e-05/0.004544, allocations: 27.22 kB / 0.8811 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.00467, allocations: 124.6 kB / 0.8813 GB, free: 3.105 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001039/0.004774, allocations: 59.03 kB / 0.8813 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.95e-05/0.004804, allocations: 23.69 kB / 0.8813 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001887/0.004992, allocations: 43.95 kB / 0.8814 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.005014, allocations: 38.59 kB / 0.8814 GB, free: 2.918 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.005015, allocations: 0 / 0.8814 GB, free: 2.918 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.01088/0.01589, allocations: 5.54 MB / 0.8868 GB, free: 13.27 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.01593, allocations: 55.34 kB / 0.8869 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.342e-05/0.01599, allocations: 153.9 kB / 0.887 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.01605, allocations: 29.7 kB / 0.8871 GB, free: 13 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 2.994e-05/0.01608, allocations: 131 kB / 0.8872 GB, free: 12.87 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 8.489e-05/0.01616, allocations: 63.47 kB / 0.8872 GB, free: 12.81 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.01632, allocations: 95.31 kB / 0.8873 GB, free: 12.71 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.01642, allocations: 0.4884 MB / 0.8878 GB, free: 12.21 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004049/0.01682, allocations: 471.8 kB / 0.8883 GB, free: 11.75 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003903/0.01721, allocations: 459.9 kB / 0.8887 GB, free: 11.3 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.01831, allocations: 1.072 MB / 0.8897 GB, free: 10.22 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.01831, allocations: 4 kB / 0.8897 GB, free: 10.22 MB / 0.8542 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001179/0.01949, allocations: 1.111 MB / 0.8908 GB, free: 9.102 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.01951, allocations: 4 kB / 0.8908 GB, free: 9.098 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.01952, allocations: 0 / 0.8908 GB, free: 9.098 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.01954, allocations: 8 kB / 0.8908 GB, free: 9.09 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000418/0.01996, allocations: 95.94 kB / 0.8909 GB, free: 8.996 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.01996, allocations: 0 / 0.8909 GB, free: 8.996 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002074/0.02017, allocations: 4 kB / 0.8909 GB, free: 8.992 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.274e-05/0.02022, allocations: 31.98 kB / 0.891 GB, free: 8.961 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.0001532/0.02038, allocations: 168.5 kB / 0.8911 GB, free: 8.785 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.65e-05/0.02046, allocations: 19.88 kB / 0.8911 GB, free: 8.766 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/0.02221, allocations: 1.334 MB / 0.8924 GB, free: 7.426 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.02221, allocations: 4 kB / 0.8925 GB, free: 7.422 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.02222, allocations: 0 / 0.8925 GB, free: 7.422 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.02222, allocations: 0 / 0.8925 GB, free: 7.422 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.02412, allocations: 1.622 MB / 0.894 GB, free: 5.754 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.02412, allocations: 0 / 0.894 GB, free: 5.754 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000392/0.02451, allocations: 107.9 kB / 0.8941 GB, free: 5.648 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.02452, allocations: 8.031 kB / 0.8941 GB, free: 5.641 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.194e-05/0.02457, allocations: 27.98 kB / 0.8942 GB, free: 5.613 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.02458, allocations: 7.938 kB / 0.8942 GB, free: 5.605 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.02458, allocations: 0 / 0.8942 GB, free: 5.605 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/0.02605, allocations: 1.333 MB / 0.8955 GB, free: 4.246 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.947e-05/0.02608, allocations: 19.83 kB / 0.8955 GB, free: 4.227 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.582e-05/0.02614, allocations: 8 kB / 0.8955 GB, free: 4.219 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.02637, allocations: 12 kB / 0.8955 GB, free: 4.207 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.02647, allocations: 39.95 kB / 0.8956 GB, free: 4.168 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.975e-05/0.02652, allocations: 32 kB / 0.8956 GB, free: 4.137 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.313e-05/0.02655, allocations: 127.2 kB / 0.8957 GB, free: 4.012 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.02655, allocations: 0 / 0.8957 GB, free: 4.012 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004336/0.02699, allocations: 187.6 kB / 0.8959 GB, free: 3.828 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.0004146/0.0274, allocations: 250.6 kB / 0.8961 GB, free: 3.574 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0008835/0.02828, allocations: 0.8766 MB / 0.897 GB, free: 2.695 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.02829, allocations: 0 / 0.897 GB, free: 2.695 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003964/0.02868, allocations: 415.3 kB / 0.8974 GB, free: 2.285 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.02892, allocations: 35.98 kB / 0.8974 GB, free: 2.25 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.03063, allocations: 0.7616 MB / 0.8982 GB, free: 1.453 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.53e-05/0.03067, allocations: 73.34 kB / 0.8982 GB, free: 1.363 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0006149/0.03129, allocations: 293.5 kB / 0.8985 GB, free: 1.074 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004119/0.0317, allocations: 96.47 kB / 0.8986 GB, free: 0.9805 MB / 0.8542 GB Notification: Performance of SimCode: time 1.342e-06/0.0317, allocations: 0 / 0.8986 GB, free: 0.9805 MB / 0.8542 GB Notification: Performance of Templates: time 0.01323/0.04493, allocations: 13.04 MB / 0.9113 GB, free: 3.996 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.481023303233087]