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.001647/0.001647, allocations: 80.33 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001407/0.001407, allocations: 163.2 kB / 22.46 MB, free: 5.359 MB / 14.72 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.476/1.476, allocations: 177.2 MB / 202.8 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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 2.86/2.86, allocations: 377.8 MB / 0.6221 GB, free: 12.55 MB / 0.5919 GB " [Timeout remaining time 176] 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.213e-06/1.213e-06, allocations: 0 / 0.9815 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.738e-05/2.86e-05, allocations: 4.953 kB / 0.9815 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001521/0.00155, allocations: 0.619 MB / 0.9821 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001856/0.003406, allocations: 1.31 MB / 0.9834 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.46e-05/0.00343, allocations: 0 / 0.9834 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.469e-05/0.003445, allocations: 0 / 0.9834 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 1.9e-05/0.003464, allocations: 0 / 0.9834 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004329/0.003897, allocations: 91.59 kB / 0.9835 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.205e-05/0.003959, allocations: 19.97 kB / 0.9835 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.926e-05/0.004008, allocations: 11.92 kB / 0.9835 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.673e-05/0.004045, allocations: 11.98 kB / 0.9835 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.044e-05/0.004115, allocations: 15.92 kB / 0.9835 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.00413, allocations: 3.938 kB / 0.9835 GB, free: 9.762 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003294/0.004459, allocations: 107.9 kB / 0.9836 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.749e-05/0.004477, allocations: 7.984 kB / 0.9836 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.016e-05/0.004497, allocations: 4 kB / 0.9836 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000197/0.004694, allocations: 95.69 kB / 0.9837 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.004697, allocations: 0 / 0.9837 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.182e-06/0.004698, allocations: 0 / 0.9837 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.004703, allocations: 0 / 0.9837 GB, free: 9.551 MB / 0.9356 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.0004957/0.005199, allocations: 278.2 kB / 0.984 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.005241, allocations: 12.03 kB / 0.984 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.706e-05/0.005278, allocations: 4.938 kB / 0.984 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.0054, allocations: 109.7 kB / 0.9841 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.005412, allocations: 384 / 0.9841 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.942e-05/0.005442, allocations: 12.33 kB / 0.9841 GB, free: 9.09 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/0.005602, allocations: 87.86 kB / 0.9842 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.005613, allocations: 192 / 0.9842 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.005624, allocations: 384 / 0.9842 GB, free: 8.992 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.005646, allocations: 3.938 kB / 0.9842 GB, free: 8.988 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.375e-05/0.00572, allocations: 23.98 kB / 0.9842 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00017/0.00589, allocations: 113.3 kB / 0.9843 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.006025, allocations: 54.56 kB / 0.9844 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.731e-05/0.006092, allocations: 28.78 kB / 0.9844 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002989/0.006391, allocations: 39.91 kB / 0.9845 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.099e-05/0.006432, allocations: 42.56 kB / 0.9845 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.233e-06/0.006433, allocations: 0 / 0.9845 GB, free: 8.641 MB / 0.9356 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.02216/0.0286, allocations: 4.167 MB / 0.9886 GB, free: 4.371 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.02865, allocations: 55.41 kB / 0.9886 GB, free: 4.305 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.188e-05/0.02873, allocations: 93.86 kB / 0.9887 GB, free: 4.203 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 9.627e-05/0.02883, allocations: 25.7 kB / 0.9887 GB, free: 4.172 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.854e-05/0.02888, allocations: 84.14 kB / 0.9888 GB, free: 4.086 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.029, allocations: 55.53 kB / 0.9889 GB, free: 4.031 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002681/0.02927, allocations: 93.66 kB / 0.989 GB, free: 3.934 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.02942, allocations: 318.8 kB / 0.9893 GB, free: 3.613 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005767/0.02999, allocations: 312 kB / 0.9896 GB, free: 3.309 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005748/0.03057, allocations: 307.9 kB / 0.9899 GB, free: 3.008 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00176/0.03233, allocations: 0.7725 MB / 0.9906 GB, free: 2.234 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.03233, allocations: 0 / 0.9906 GB, free: 2.234 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001783/0.03411, allocations: 0.8122 MB / 0.9914 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.03413, allocations: 4 kB / 0.9914 GB, free: 1.414 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.03414, allocations: 3.938 kB / 0.9914 GB, free: 1.41 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.03415, allocations: 0 / 0.9914 GB, free: 1.41 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008858/0.03504, allocations: 87.95 kB / 0.9915 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.03504, allocations: 4 kB / 0.9915 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005688/0.03561, allocations: 8 kB / 0.9915 GB, free: 1.312 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.855e-05/0.03571, allocations: 39.97 kB / 0.9915 GB, free: 1.273 MB / 0.9356 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.0002366/0.03595, allocations: 117.8 kB / 0.9917 GB, free: 1.148 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.918e-05/0.03604, allocations: 11.89 kB / 0.9917 GB, free: 1.137 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003533/0.03957, allocations: 1.399 MB / 0.993 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.03958, allocations: 4 kB / 0.993 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.03958, allocations: 3.984 kB / 0.993 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.03959, allocations: 0 / 0.993 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003375/0.04296, allocations: 1.671 MB / 0.9947 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.04297, allocations: 4 kB / 0.9947 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008585/0.04383, allocations: 107.9 kB / 0.9948 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.04383, allocations: 3.938 kB / 0.9948 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.771e-05/0.04391, allocations: 28 kB / 0.9948 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.04392, allocations: 0 / 0.9948 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.04392, allocations: 4.875 kB / 0.9948 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002935/0.04685, allocations: 1.474 MB / 0.9963 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 2.407e-05/0.04688, allocations: 11.92 kB / 0.9963 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.04698, allocations: 8 kB / 0.9963 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005869/0.04756, allocations: 15.98 kB / 0.9963 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.04773, allocations: 39.95 kB / 0.9963 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.617e-05/0.04782, allocations: 32 kB / 0.9964 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.557e-05/0.04786, allocations: 75.28 kB / 0.9964 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of sort global known variables: time 9e-08/0.04786, allocations: 0 / 0.9964 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006477/0.04851, allocations: 191.6 kB / 0.9966 GB, free: 12 MB / 0.9512 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.0006661/0.04918, allocations: 254.8 kB / 0.9969 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001423/0.0506, allocations: 0.7067 MB / 0.9975 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.0506, allocations: 0 / 0.9975 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007254/0.05133, allocations: 407.6 kB / 0.9979 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.05171, allocations: 16 kB / 0.998 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004151/0.05586, allocations: 0.7813 MB / 0.9987 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001209/0.05598, allocations: 107.5 kB / 0.9988 GB, free: 9.684 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001108/0.05709, allocations: 289.5 kB / 0.9991 GB, free: 9.402 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000614/0.0577, allocations: 96.47 kB / 0.9992 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of SimCode: time 1.714e-06/0.05771, allocations: 0 / 0.9992 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of Templates: time 0.02152/0.07922, allocations: 11.99 MB / 1.011 GB, free: 13.41 MB / 0.9669 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.237703502178192]