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.001488/0.001488, allocations: 80.8 kB / 20.75 MB, free: 3.742 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.00176/0.00176, allocations: 161 kB / 24.16 MB, free: 336 kB / 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.019/1.019, allocations: 177.1 MB / 204.6 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.998/1.998, allocations: 377.9 MB / 0.624 GB, free: 8.367 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.212e-06/1.212e-06, allocations: 1.203 kB / 0.7601 GB, free: 6.535 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.505e-05/1.626e-05, allocations: 5.406 kB / 0.7601 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001149/0.001165, allocations: 0.6849 MB / 0.7608 GB, free: 5.867 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001325/0.00249, allocations: 1.352 MB / 0.7621 GB, free: 4.508 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.224e-05/0.002512, allocations: 0 / 0.7621 GB, free: 4.508 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 1.264e-05/0.002525, allocations: 0 / 0.7621 GB, free: 4.508 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 2.163e-05/0.002546, allocations: 9.188 kB / 0.7621 GB, free: 4.5 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.002843, allocations: 73.84 kB / 0.7622 GB, free: 4.43 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 4.757e-05/0.002891, allocations: 17.97 kB / 0.7622 GB, free: 4.414 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 3.477e-05/0.002925, allocations: 4 kB / 0.7622 GB, free: 4.41 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 3.669e-05/0.002962, allocations: 17.27 kB / 0.7622 GB, free: 4.395 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 6.154e-05/0.003024, allocations: 14.83 kB / 0.7622 GB, free: 4.383 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.022e-05/0.003034, allocations: 0 / 0.7622 GB, free: 4.383 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002283/0.003262, allocations: 116.7 kB / 0.7624 GB, free: 4.27 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 1.279e-05/0.003275, allocations: 12.73 kB / 0.7624 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 1.402e-05/0.003289, allocations: 6.047 kB / 0.7624 GB, free: 4.254 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001232/0.003412, allocations: 89.89 kB / 0.7625 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.003414, allocations: 0 / 0.7625 GB, free: 4.168 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.31e-07/0.003415, allocations: 5.25 kB / 0.7625 GB, free: 4.164 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.866e-06/0.003418, allocations: 0 / 0.7625 GB, free: 4.164 MB / 0.7136 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.0002777/0.003695, allocations: 253.1 kB / 0.7627 GB, free: 3.895 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.003726, allocations: 12.03 kB / 0.7627 GB, free: 3.883 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.726e-05/0.003754, allocations: 9.688 kB / 0.7627 GB, free: 3.875 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.791e-05/0.003832, allocations: 105.8 kB / 0.7628 GB, free: 3.746 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.165e-05/0.003843, allocations: 5.125 kB / 0.7628 GB, free: 3.742 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.919e-05/0.003862, allocations: 4.359 kB / 0.7628 GB, free: 3.738 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.771e-05/0.00394, allocations: 74.14 kB / 0.7629 GB, free: 3.656 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.003951, allocations: 4.484 kB / 0.7629 GB, free: 3.652 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.003959, allocations: 4.375 kB / 0.7629 GB, free: 3.648 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.003965, allocations: 3.938 kB / 0.7629 GB, free: 3.645 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.931e-05/0.004005, allocations: 19.92 kB / 0.7629 GB, free: 3.625 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.024e-05/0.004085, allocations: 61.05 kB / 0.763 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.2e-05/0.004157, allocations: 55.22 kB / 0.763 GB, free: 3.488 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.364e-05/0.004181, allocations: 19.81 kB / 0.7631 GB, free: 3.469 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001434/0.004324, allocations: 39.97 kB / 0.7631 GB, free: 3.43 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.004347, allocations: 34.56 kB / 0.7631 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 9.11e-07/0.004348, allocations: 0 / 0.7631 GB, free: 3.387 MB / 0.7136 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.009508/0.01386, allocations: 4.713 MB / 0.7677 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.26e-05/0.01388, allocations: 51.41 kB / 0.7678 GB, free: 14.6 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.765e-05/0.01393, allocations: 102.7 kB / 0.7679 GB, free: 14.49 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.225e-05/0.01398, allocations: 30.36 kB / 0.7679 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 1.963e-05/0.014, allocations: 80.14 kB / 0.768 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.983e-05/0.01408, allocations: 60.38 kB / 0.768 GB, free: 14.31 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.01423, allocations: 45.64 kB / 0.7681 GB, free: 14.26 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.504e-05/0.0143, allocations: 315.6 kB / 0.7684 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002542/0.01455, allocations: 312 kB / 0.7687 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000251/0.01481, allocations: 320.9 kB / 0.769 GB, free: 13.33 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008318/0.01564, allocations: 0.7951 MB / 0.7698 GB, free: 12.53 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.01564, allocations: 4 kB / 0.7698 GB, free: 12.53 MB / 0.7292 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0007636/0.0164, allocations: 0.7496 MB / 0.7705 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.01642, allocations: 9.656 kB / 0.7705 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.01642, allocations: 480 / 0.7705 GB, free: 11.77 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.01644, allocations: 4 kB / 0.7705 GB, free: 11.76 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003686/0.01681, allocations: 47.92 kB / 0.7706 GB, free: 11.71 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.534e-06/0.01681, allocations: 0 / 0.7706 GB, free: 11.71 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.01698, allocations: 9.156 kB / 0.7706 GB, free: 11.71 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.403e-05/0.01702, allocations: 7.984 kB / 0.7706 GB, free: 11.7 MB / 0.7292 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.0001281/0.01715, allocations: 123.1 kB / 0.7707 GB, free: 11.57 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.975e-05/0.01722, allocations: 7.938 kB / 0.7707 GB, free: 11.56 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.01858, allocations: 0.9783 MB / 0.7717 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.01859, allocations: 4 kB / 0.7717 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.01859, allocations: 0 / 0.7717 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.01859, allocations: 0 / 0.7717 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.01976, allocations: 0.9723 MB / 0.7726 GB, free: 9.621 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.01976, allocations: 4 kB / 0.7726 GB, free: 9.617 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00037/0.02013, allocations: 71.91 kB / 0.7727 GB, free: 9.547 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.02014, allocations: 8.031 kB / 0.7727 GB, free: 9.539 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.811e-05/0.02019, allocations: 11.92 kB / 0.7727 GB, free: 9.527 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.02019, allocations: 4 kB / 0.7727 GB, free: 9.523 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.02019, allocations: 0 / 0.7727 GB, free: 9.523 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.02139, allocations: 0.869 MB / 0.7736 GB, free: 8.633 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.512e-05/0.0214, allocations: 19.83 kB / 0.7736 GB, free: 8.613 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.487e-05/0.02146, allocations: 12 kB / 0.7736 GB, free: 8.602 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.02164, allocations: 8 kB / 0.7736 GB, free: 8.594 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.356e-05/0.02173, allocations: 27.95 kB / 0.7736 GB, free: 8.566 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.875e-05/0.02177, allocations: 7.984 kB / 0.7736 GB, free: 8.559 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 9.207e-06/0.02178, allocations: 8.891 kB / 0.7736 GB, free: 8.547 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.02178, allocations: 0 / 0.7736 GB, free: 8.547 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003585/0.02214, allocations: 179.7 kB / 0.7738 GB, free: 8.371 MB / 0.7292 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.000353/0.02249, allocations: 239.8 kB / 0.774 GB, free: 8.129 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005696/0.02306, allocations: 0.5709 MB / 0.7746 GB, free: 7.555 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.02307, allocations: 4 kB / 0.7746 GB, free: 7.551 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002603/0.02333, allocations: 256.6 kB / 0.7748 GB, free: 7.297 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001782/0.0235, allocations: 26.36 kB / 0.7749 GB, free: 7.273 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.02488, allocations: 0.5152 MB / 0.7754 GB, free: 6.73 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.301e-05/0.02492, allocations: 81.2 kB / 0.7755 GB, free: 6.633 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0006276/0.02555, allocations: 289.5 kB / 0.7757 GB, free: 6.352 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005433/0.02609, allocations: 95.36 kB / 0.7758 GB, free: 6.258 MB / 0.7292 GB Notification: Performance of SimCode: time 1.162e-06/0.02609, allocations: 0 / 0.7758 GB, free: 6.258 MB / 0.7292 GB Notification: Performance of Templates: time 0.01206/0.03815, allocations: 12.93 MB / 0.7885 GB, free: 9.367 MB / 0.7448 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 -s gbode -gbm=radauIIA3 -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.30532719520852]