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.001813/0.001813, allocations: 78.48 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.002181/0.002181, allocations: 170 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.446/1.446, allocations: 177.1 MB / 202.8 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] 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.882/2.882, allocations: 389 MB / 0.633 GB, free: 1 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.1 (/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.433e-06/1.433e-06, allocations: 0 / 1 GB, free: 6.172 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.322e-05/2.466e-05, allocations: 2.281 kB / 1 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001555/0.00158, allocations: 0.6365 MB / 1.001 GB, free: 5.535 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.001827/0.003407, allocations: 1.303 MB / 1.002 GB, free: 4.215 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.214e-05/0.003429, allocations: 4 kB / 1.002 GB, free: 4.211 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 1.422e-05/0.003443, allocations: 3.938 kB / 1.002 GB, free: 4.207 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 2.292e-05/0.003466, allocations: 0 / 1.002 GB, free: 4.207 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.003847, allocations: 83.59 kB / 1.002 GB, free: 4.125 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 6.431e-05/0.003912, allocations: 23.92 kB / 1.002 GB, free: 4.102 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 4.171e-05/0.003953, allocations: 7.984 kB / 1.002 GB, free: 4.094 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 3.708e-05/0.00399, allocations: 15.97 kB / 1.002 GB, free: 4.078 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 6.653e-05/0.004057, allocations: 7.984 kB / 1.002 GB, free: 4.07 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.598e-05/0.004073, allocations: 4 kB / 1.002 GB, free: 4.066 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002849/0.004358, allocations: 111.8 kB / 1.002 GB, free: 3.957 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 1.995e-05/0.004378, allocations: 15.91 kB / 1.002 GB, free: 3.941 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 1.829e-05/0.004396, allocations: 4 kB / 1.002 GB, free: 3.938 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.004569, allocations: 87.75 kB / 1.002 GB, free: 3.852 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.004572, allocations: 4 kB / 1.002 GB, free: 3.848 MB / 0.9044 GB Notification: Performance of FrontEnd: time 6.11e-07/0.004572, allocations: 0 / 1.002 GB, free: 3.848 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.946e-06/0.004575, allocations: 0 / 1.002 GB, free: 3.848 MB / 0.9044 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.0004701/0.005045, allocations: 278.1 kB / 1.003 GB, free: 3.547 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.005081, allocations: 8.031 kB / 1.003 GB, free: 3.539 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.473e-05/0.005116, allocations: 12.89 kB / 1.003 GB, free: 3.527 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.61e-05/0.005212, allocations: 101.8 kB / 1.003 GB, free: 3.402 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.005227, allocations: 4.375 kB / 1.003 GB, free: 3.398 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.932e-05/0.005256, allocations: 8.375 kB / 1.003 GB, free: 3.391 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001546/0.005411, allocations: 75.94 kB / 1.003 GB, free: 3.305 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.005423, allocations: 4.125 kB / 1.003 GB, free: 3.301 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.005435, allocations: 8.312 kB / 1.003 GB, free: 3.293 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.005441, allocations: 3.938 kB / 1.003 GB, free: 3.289 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.561e-05/0.005507, allocations: 19.98 kB / 1.003 GB, free: 3.27 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001555/0.005662, allocations: 117.2 kB / 1.003 GB, free: 3.125 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.005796, allocations: 58.56 kB / 1.003 GB, free: 3.059 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.935e-05/0.005845, allocations: 28.84 kB / 1.003 GB, free: 3.027 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002545/0.0061, allocations: 31.97 kB / 1.003 GB, free: 2.996 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.006133, allocations: 38.5 kB / 1.003 GB, free: 2.949 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 2.955e-06/0.006136, allocations: 3.984 kB / 1.003 GB, free: 2.945 MB / 0.9044 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.02161/0.02774, allocations: 4.158 MB / 1.007 GB, free: 14.69 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.02779, allocations: 59.34 kB / 1.007 GB, free: 14.62 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.965e-05/0.02787, allocations: 93.86 kB / 1.007 GB, free: 14.52 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 8.309e-05/0.02795, allocations: 29.7 kB / 1.007 GB, free: 14.48 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.04e-05/0.02799, allocations: 80.14 kB / 1.007 GB, free: 14.4 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.02812, allocations: 55.48 kB / 1.008 GB, free: 14.34 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003012/0.02842, allocations: 97.66 kB / 1.008 GB, free: 14.24 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.02858, allocations: 319 kB / 1.008 GB, free: 13.92 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006396/0.02922, allocations: 307.9 kB / 1.008 GB, free: 13.62 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005815/0.02981, allocations: 313.6 kB / 1.009 GB, free: 13.32 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001696/0.0315, allocations: 0.7719 MB / 1.009 GB, free: 12.54 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.0315, allocations: 7.938 kB / 1.009 GB, free: 12.54 MB / 0.92 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001755/0.03326, allocations: 0.8058 MB / 1.01 GB, free: 11.72 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.03328, allocations: 8 kB / 1.01 GB, free: 11.71 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.03328, allocations: 0 / 1.01 GB, free: 11.71 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.0333, allocations: 0 / 1.01 GB, free: 11.71 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008814/0.03418, allocations: 91.95 kB / 1.01 GB, free: 11.62 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.03419, allocations: 0.9375 kB / 1.01 GB, free: 11.62 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005631/0.03475, allocations: 12 kB / 1.01 GB, free: 11.61 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.03486, allocations: 39.97 kB / 1.01 GB, free: 11.57 MB / 0.92 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.0002193/0.03508, allocations: 119 kB / 1.01 GB, free: 11.45 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.946e-05/0.03517, allocations: 7.891 kB / 1.01 GB, free: 11.44 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003482/0.03865, allocations: 1.399 MB / 1.012 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.03865, allocations: 4 kB / 1.012 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.03866, allocations: 0 / 1.012 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.03867, allocations: 3.984 kB / 1.012 GB, free: 10.02 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.04182, allocations: 1.667 MB / 1.013 GB, free: 8.316 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.04182, allocations: 0 / 1.013 GB, free: 8.316 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008518/0.04267, allocations: 107.9 kB / 1.013 GB, free: 8.211 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.04268, allocations: 0 / 1.013 GB, free: 8.211 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.838e-05/0.04276, allocations: 28 kB / 1.013 GB, free: 8.184 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.04276, allocations: 4 kB / 1.013 GB, free: 8.18 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.04276, allocations: 7.969 kB / 1.013 GB, free: 8.172 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002693/0.04546, allocations: 1.471 MB / 1.015 GB, free: 6.684 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 2.035e-05/0.04548, allocations: 15.84 kB / 1.015 GB, free: 6.668 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.04558, allocations: 8 kB / 1.015 GB, free: 6.66 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005712/0.04615, allocations: 11.98 kB / 1.015 GB, free: 6.648 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/0.04633, allocations: 43.95 kB / 1.015 GB, free: 6.605 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-05/0.04642, allocations: 32 kB / 1.015 GB, free: 6.574 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.382e-05/0.04647, allocations: 75.28 kB / 1.015 GB, free: 6.5 MB / 0.92 GB Notification: Performance of sort global known variables: time 8e-08/0.04647, allocations: 0 / 1.015 GB, free: 6.5 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006104/0.04708, allocations: 187.6 kB / 1.015 GB, free: 6.316 MB / 0.92 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.0006083/0.04768, allocations: 254.8 kB / 1.016 GB, free: 6.059 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001387/0.04907, allocations: 0.7168 MB / 1.016 GB, free: 5.344 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/0.04908, allocations: 0 / 1.016 GB, free: 5.344 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0006932/0.04977, allocations: 403.7 kB / 1.017 GB, free: 4.949 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003728/0.05015, allocations: 17.88 kB / 1.017 GB, free: 4.934 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003914/0.05406, allocations: 0.7811 MB / 1.017 GB, free: 4.121 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001279/0.05419, allocations: 107.7 kB / 1.018 GB, free: 3.992 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.00113/0.05532, allocations: 297.5 kB / 1.018 GB, free: 3.703 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006292/0.05595, allocations: 96.45 kB / 1.018 GB, free: 3.609 MB / 0.92 GB Notification: Performance of SimCode: time 6.21e-07/0.05595, allocations: 0 / 1.018 GB, free: 3.609 MB / 0.92 GB Notification: Performance of Templates: time 0.01923/0.07518, allocations: 11.97 MB / 1.03 GB, free: 7.699 MB / 0.9356 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.308058861643076]