Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001614/0.001614, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.002829/0.002829, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.571/1.571, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 3.001/3.001, allocations: 476.7 MB / 0.7678 GB, free: 9.32 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_11_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.002092/0.002092, allocations: 75.89 kB / 1.113 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.119/1.121, allocations: 169.9 MB / 1.279 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002014/1.123, allocations: 0.6186 MB / 1.28 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002311/1.125, allocations: 1.369 MB / 1.281 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.791e-05/1.125, allocations: 0 / 1.281 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.759e-05/1.125, allocations: 3.938 kB / 1.281 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.113e-05/1.125, allocations: 1.25 kB / 1.281 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004683/1.126, allocations: 81 kB / 1.281 GB, free: 10.28 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.447e-05/1.126, allocations: 23.11 kB / 1.281 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.908e-05/1.126, allocations: 6.297 kB / 1.281 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.54e-05/1.126, allocations: 11.69 kB / 1.281 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.585e-05/1.126, allocations: 12.3 kB / 1.281 GB, free: 10.26 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/1.126, allocations: 6.156 kB / 1.281 GB, free: 10.26 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003317/1.126, allocations: 114.4 kB / 1.281 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.463e-05/1.126, allocations: 11.14 kB / 1.281 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.991e-05/1.126, allocations: 13.05 kB / 1.281 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001934/1.127, allocations: 75.86 kB / 1.281 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/1.127, allocations: 0 / 1.281 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.475e-06/1.127, allocations: 3.938 kB / 1.281 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.422e-06/1.127, allocations: 1.188 kB / 1.281 GB, free: 10.18 MB / 0.9981 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.0005634/1.127, allocations: 355.6 kB / 1.282 GB, free: 9.812 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/1.127, allocations: 10.06 kB / 1.282 GB, free: 9.812 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.486e-05/1.127, allocations: 1.219 kB / 1.282 GB, free: 9.812 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.552e-05/1.127, allocations: 36.42 kB / 1.282 GB, free: 9.77 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.509e-05/1.127, allocations: 11.83 kB / 1.282 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/1.128, allocations: 166.2 kB / 1.282 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/1.128, allocations: 2.625 kB / 1.282 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.104e-05/1.128, allocations: 3.375 kB / 1.282 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001508/1.128, allocations: 63.19 kB / 1.282 GB, free: 9.512 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/1.128, allocations: 1.094 kB / 1.282 GB, free: 9.512 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/1.128, allocations: 0.5 kB / 1.282 GB, free: 9.512 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/1.128, allocations: 1.031 kB / 1.282 GB, free: 9.512 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.276e-05/1.128, allocations: 22.73 kB / 1.282 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002306/1.128, allocations: 170.4 kB / 1.282 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001693/1.128, allocations: 60.08 kB / 1.282 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.317e-05/1.128, allocations: 25.52 kB / 1.282 GB, free: 9.25 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006376/1.129, allocations: 0.5602 MB / 1.283 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/1.129, allocations: 36.08 kB / 1.283 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/1.129, allocations: 0.5 kB / 1.283 GB, free: 8.547 MB / 0.9981 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.02169/1.151, allocations: 4.396 MB / 1.287 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/1.151, allocations: 53.33 kB / 1.287 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.761e-05/1.151, allocations: 96.27 kB / 1.287 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.807e-05/1.151, allocations: 30.89 kB / 1.287 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.796e-05/1.151, allocations: 82.05 kB / 1.287 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/1.151, allocations: 65.75 kB / 1.287 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/1.151, allocations: 92.45 kB / 1.287 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001623/1.152, allocations: 321 kB / 1.288 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006129/1.152, allocations: 308 kB / 1.288 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005636/1.153, allocations: 316.1 kB / 1.288 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/1.154, allocations: 0.7763 MB / 1.289 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/1.154, allocations: 0 / 1.289 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001687/1.156, allocations: 0.7951 MB / 1.29 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/1.156, allocations: 5.281 kB / 1.29 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/1.156, allocations: 0.6094 kB / 1.29 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/1.156, allocations: 1.281 kB / 1.29 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/1.157, allocations: 94.03 kB / 1.29 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/1.157, allocations: 1.281 kB / 1.29 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005437/1.158, allocations: 13.16 kB / 1.29 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/1.158, allocations: 41.41 kB / 1.29 GB, free: 5.07 MB / 0.9981 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.0002523/1.158, allocations: 118.7 kB / 1.29 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/1.158, allocations: 3.375 kB / 1.29 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003712/1.162, allocations: 1.402 MB / 1.292 GB, free: 4.289 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/1.162, allocations: 8.328 kB / 1.292 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/1.162, allocations: 0.5625 kB / 1.292 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/1.162, allocations: 3.344 kB / 1.292 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003315/1.165, allocations: 1.817 MB / 1.293 GB, free: 3.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/1.165, allocations: 5.25 kB / 1.293 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000846/1.166, allocations: 109.4 kB / 1.293 GB, free: 3.223 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/1.166, allocations: 6 kB / 1.293 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.809e-05/1.166, allocations: 26.94 kB / 1.293 GB, free: 3.215 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/1.166, allocations: 6.5 kB / 1.293 GB, free: 3.211 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/1.166, allocations: 0.5625 kB / 1.293 GB, free: 3.211 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002687/1.169, allocations: 1.467 MB / 1.295 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.236e-05/1.169, allocations: 93.91 kB / 1.295 GB, free: 2.352 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.617e-05/1.169, allocations: 11.02 kB / 1.295 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005433/1.17, allocations: 11.03 kB / 1.295 GB, free: 2.34 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/1.17, allocations: 50.33 kB / 1.295 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.779e-05/1.17, allocations: 28.69 kB / 1.295 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.036e-05/1.17, allocations: 81.2 kB / 1.295 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/1.17, allocations: 0 / 1.295 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000717/1.171, allocations: 185.8 kB / 1.295 GB, free: 2.219 MB / 0.9981 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.003546/1.174, allocations: 2.134 MB / 1.297 GB, free: 0.8945 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001439/1.176, allocations: 0.7146 MB / 1.298 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.176, allocations: 0 / 1.298 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006982/1.176, allocations: 406 kB / 1.298 GB, free: 452 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/1.177, allocations: 16.22 kB / 1.299 GB, free: 440 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008495/1.185, allocations: 3.726 MB / 1.302 GB, free: 14.23 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003927/1.186, allocations: 0.7154 MB / 1.303 GB, free: 13.53 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001052/1.187, allocations: 294.3 kB / 1.303 GB, free: 13.38 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006142/1.187, allocations: 124.2 kB / 1.303 GB, free: 13.34 MB / 1.014 GB Notification: Performance of SimCode: time 5.91e-07/1.187, allocations: 0 / 1.303 GB, free: 13.34 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0553/1.242, allocations: 12.93 MB / 1.316 GB, free: 10.26 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.685/9.927, allocations: 7.578 kB / 1.316 GB, free: 10.25 MB / 1.014 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 16.727393664012197]