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.001772/0.001772, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002374/0.002374, allocations: 214.8 kB / 23.04 MB, free: 5.074 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.577/1.577, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.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 3.372/3.372, allocations: 0.5003 GB / 0.8061 GB, free: 26.77 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 73.48 kB / 1.171 GB, free: 19.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3549, allocations: 179 MB / 1.345 GB, free: 436 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002617/0.3575, allocations: 0.6209 MB / 1.346 GB, free: 15.8 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002452/0.36, allocations: 1.369 MB / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.516e-05/0.36, allocations: 4 kB / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.99e-05/0.36, allocations: 0 / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 2.313e-05/0.36, allocations: 4 kB / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.3606, allocations: 83.66 kB / 1.347 GB, free: 14.32 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 8.331e-05/0.3607, allocations: 19.98 kB / 1.347 GB, free: 14.3 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.347e-05/0.3607, allocations: 4 kB / 1.347 GB, free: 14.3 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 2.834e-05/0.3607, allocations: 15.92 kB / 1.347 GB, free: 14.29 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.997e-05/0.3608, allocations: 19.91 kB / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.3609, allocations: 0 / 1.347 GB, free: 14.27 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003697/0.3612, allocations: 115.8 kB / 1.348 GB, free: 14.15 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.11e-05/0.3612, allocations: 11.98 kB / 1.348 GB, free: 14.14 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 2.883e-05/0.3613, allocations: 11.94 kB / 1.348 GB, free: 14.13 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002171/0.3615, allocations: 79.98 kB / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3615, allocations: 0 / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3615, allocations: 0 / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.592e-06/0.3615, allocations: 0 / 1.348 GB, free: 14.05 MB / 1.045 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.0005712/0.3621, allocations: 286.1 kB / 1.348 GB, free: 13.74 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/0.3621, allocations: 8.031 kB / 1.348 GB, free: 13.73 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.548e-05/0.3621, allocations: 192 / 1.348 GB, free: 13.73 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.139e-05/0.3622, allocations: 42.75 kB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.652e-05/0.3622, allocations: 0.9375 kB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.3623, allocations: 106.5 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.308e-06/0.3624, allocations: 384 / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.382e-05/0.3624, allocations: 8.375 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.3626, allocations: 57.59 kB / 1.348 GB, free: 13.48 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.3626, allocations: 3.953 kB / 1.348 GB, free: 13.48 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.3626, allocations: 4 kB / 1.348 GB, free: 13.48 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3626, allocations: 4 kB / 1.348 GB, free: 13.47 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.079e-05/0.3627, allocations: 23.92 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002514/0.3629, allocations: 144.7 kB / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001366/0.3631, allocations: 54.55 kB / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.127e-05/0.3631, allocations: 29.03 kB / 1.348 GB, free: 13.17 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003061/0.3634, allocations: 47.88 kB / 1.348 GB, free: 13.12 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.3635, allocations: 38.56 kB / 1.348 GB, free: 13.08 MB / 1.045 GB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.3635, allocations: 0 / 1.348 GB, free: 13.08 MB / 1.045 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.02131/0.3848, allocations: 4.167 MB / 1.353 GB, free: 8.812 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.3848, allocations: 59.41 kB / 1.353 GB, free: 8.742 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.676e-05/0.3849, allocations: 89.86 kB / 1.353 GB, free: 8.645 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 8.515e-05/0.385, allocations: 29.7 kB / 1.353 GB, free: 8.609 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.984e-05/0.385, allocations: 84.14 kB / 1.353 GB, free: 8.523 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.3851, allocations: 55.48 kB / 1.353 GB, free: 8.469 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000276/0.3854, allocations: 93.66 kB / 1.353 GB, free: 8.371 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3855, allocations: 322.8 kB / 1.353 GB, free: 8.047 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005667/0.3861, allocations: 312 kB / 1.354 GB, free: 7.742 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005854/0.3867, allocations: 307.9 kB / 1.354 GB, free: 7.441 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/0.3883, allocations: 0.7716 MB / 1.355 GB, free: 6.668 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3883, allocations: 0 / 1.355 GB, free: 6.668 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001728/0.3901, allocations: 0.8039 MB / 1.355 GB, free: 5.859 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.3901, allocations: 4 kB / 1.355 GB, free: 5.855 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3901, allocations: 7.938 kB / 1.355 GB, free: 5.848 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.3901, allocations: 0 / 1.355 GB, free: 5.848 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009119/0.391, allocations: 91.94 kB / 1.355 GB, free: 5.758 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.391, allocations: 0 / 1.355 GB, free: 5.758 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005685/0.3916, allocations: 16 kB / 1.355 GB, free: 5.742 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.883e-05/0.3917, allocations: 31.92 kB / 1.356 GB, free: 5.711 MB / 1.045 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.0002264/0.3919, allocations: 118.4 kB / 1.356 GB, free: 5.586 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.737e-05/0.392, allocations: 11.95 kB / 1.356 GB, free: 5.574 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003441/0.3955, allocations: 1.403 MB / 1.357 GB, free: 4.156 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3955, allocations: 4 kB / 1.357 GB, free: 4.152 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3955, allocations: 0 / 1.357 GB, free: 4.152 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3955, allocations: 4 kB / 1.357 GB, free: 4.148 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003253/0.3987, allocations: 1.774 MB / 1.359 GB, free: 2.324 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.3988, allocations: 4 kB / 1.359 GB, free: 2.32 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008286/0.3996, allocations: 107.9 kB / 1.359 GB, free: 2.215 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.098e-05/0.3996, allocations: 3.969 kB / 1.359 GB, free: 2.211 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.907e-05/0.3997, allocations: 39.92 kB / 1.359 GB, free: 2.172 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.3997, allocations: 3.938 kB / 1.359 GB, free: 2.168 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3997, allocations: 0 / 1.359 GB, free: 2.168 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.4023, allocations: 1.459 MB / 1.36 GB, free: 0.6875 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.353e-05/0.4024, allocations: 23.86 kB / 1.36 GB, free: 0.6641 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.4025, allocations: 15.94 kB / 1.36 GB, free: 0.6484 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005525/0.403, allocations: 16.06 kB / 1.36 GB, free: 0.6328 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.4032, allocations: 43.95 kB / 1.36 GB, free: 0.5898 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.25e-05/0.4033, allocations: 28 kB / 1.36 GB, free: 0.5625 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.445e-05/0.4033, allocations: 75.28 kB / 1.361 GB, free: 500 kB / 1.045 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4033, allocations: 0 / 1.361 GB, free: 500 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.0006455/0.404, allocations: 187.7 kB / 1.361 GB, free: 312 kB / 1.045 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.003445/0.4074, allocations: 2.134 MB / 1.363 GB, free: 14.14 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001385/0.4088, allocations: 0.7189 MB / 1.363 GB, free: 13.42 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4088, allocations: 0 / 1.363 GB, free: 13.42 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0006919/0.4095, allocations: 407.6 kB / 1.364 GB, free: 13.02 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.4098, allocations: 16 kB / 1.364 GB, free: 13.01 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008544/0.4184, allocations: 3.724 MB / 1.368 GB, free: 9.203 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.4187, allocations: 0.7141 MB / 1.368 GB, free: 8.461 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001051/0.4198, allocations: 297.5 kB / 1.369 GB, free: 8.172 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00061/0.4204, allocations: 115.4 kB / 1.369 GB, free: 8.059 MB / 1.061 GB Notification: Performance of SimCode: time 1.543e-06/0.4204, allocations: 0 / 1.369 GB, free: 8.059 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04393/0.4643, allocations: 13.52 MB / 1.382 GB, free: 10.71 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.1, allocations: 4.547 kB / 1.382 GB, free: 10.71 MB / 1.076 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 840.0] 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/jenkins1/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: 19.275821798015386]