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.001614/0.001614, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002539/0.002539, allocations: 221.3 kB / 23.03 MB, free: 4.941 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.542/1.542, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.413/3.413, allocations: 0.5003 GB / 0.8062 GB, free: 28.29 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.002059/0.002059, allocations: 70.58 kB / 1.171 GB, free: 19.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3599, allocations: 179 MB / 1.345 GB, free: 15.91 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001842/0.3618, allocations: 0.6288 MB / 1.346 GB, free: 15.29 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001781/0.3635, allocations: 1.296 MB / 1.347 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.779e-05/0.3636, allocations: 4 kB / 1.347 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 1.461e-05/0.3636, allocations: 0 / 1.347 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 2.995e-05/0.3636, allocations: 3.938 kB / 1.347 GB, free: 13.96 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004322/0.364, allocations: 83.72 kB / 1.347 GB, free: 13.88 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 7.506e-05/0.3641, allocations: 27.91 kB / 1.347 GB, free: 13.86 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.917e-05/0.3642, allocations: 0 / 1.347 GB, free: 13.86 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 2.533e-05/0.3642, allocations: 8 kB / 1.347 GB, free: 13.85 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.902e-05/0.3643, allocations: 23.91 kB / 1.347 GB, free: 13.82 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.199e-05/0.3643, allocations: 0 / 1.347 GB, free: 13.82 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003099/0.3646, allocations: 119.8 kB / 1.347 GB, free: 13.71 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.727e-05/0.3646, allocations: 4 kB / 1.347 GB, free: 13.7 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 2.461e-05/0.3646, allocations: 11.92 kB / 1.347 GB, free: 13.69 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001819/0.3648, allocations: 84 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3648, allocations: 0 / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.754e-06/0.3648, allocations: 0 / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.3648, allocations: 0 / 1.348 GB, free: 13.61 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.0004938/0.3653, allocations: 282.2 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3654, allocations: 8.031 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.607e-05/0.3654, allocations: 192 / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.432e-05/0.3654, allocations: 34.75 kB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.034e-05/0.3655, allocations: 0.9375 kB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.3656, allocations: 114.5 kB / 1.348 GB, free: 13.12 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.3656, allocations: 4.375 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.3656, allocations: 8.328 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.3658, allocations: 83.27 kB / 1.348 GB, free: 13.01 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.3658, allocations: 0 / 1.348 GB, free: 13.01 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3658, allocations: 7.875 kB / 1.348 GB, free: 13 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.3658, allocations: 4 kB / 1.348 GB, free: 13 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.643e-05/0.3659, allocations: 23.97 kB / 1.348 GB, free: 12.98 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001877/0.3661, allocations: 132.7 kB / 1.348 GB, free: 12.8 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.3662, allocations: 62.53 kB / 1.348 GB, free: 12.73 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.931e-05/0.3663, allocations: 25.09 kB / 1.348 GB, free: 12.71 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002829/0.3666, allocations: 47.89 kB / 1.348 GB, free: 12.66 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.3666, allocations: 38.5 kB / 1.348 GB, free: 12.61 MB / 1.045 GB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.3666, allocations: 0 / 1.348 GB, free: 12.61 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.02103/0.3876, allocations: 4.163 MB / 1.352 GB, free: 8.348 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.3877, allocations: 55.41 kB / 1.353 GB, free: 8.281 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.534e-05/0.3878, allocations: 93.86 kB / 1.353 GB, free: 8.18 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 7.272e-05/0.3878, allocations: 25.7 kB / 1.353 GB, free: 8.148 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 3.883e-05/0.3879, allocations: 80.14 kB / 1.353 GB, free: 8.066 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.388, allocations: 59.48 kB / 1.353 GB, free: 8.008 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002847/0.3883, allocations: 97.66 kB / 1.353 GB, free: 7.906 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3884, allocations: 318.7 kB / 1.353 GB, free: 7.586 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005667/0.389, allocations: 311.9 kB / 1.353 GB, free: 7.281 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006358/0.3896, allocations: 316 kB / 1.354 GB, free: 6.973 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001625/0.3912, allocations: 0.7716 MB / 1.354 GB, free: 6.199 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.3912, allocations: 0 / 1.354 GB, free: 6.199 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001675/0.3929, allocations: 0.802 MB / 1.355 GB, free: 5.391 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3929, allocations: 4 kB / 1.355 GB, free: 5.387 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3929, allocations: 0 / 1.355 GB, free: 5.387 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.393, allocations: 4 kB / 1.355 GB, free: 5.383 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008673/0.3938, allocations: 95.95 kB / 1.355 GB, free: 5.289 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.3938, allocations: 0 / 1.355 GB, free: 5.289 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005014/0.3943, allocations: 4 kB / 1.355 GB, free: 5.285 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.3944, allocations: 43.91 kB / 1.355 GB, free: 5.242 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.0002215/0.3947, allocations: 125.7 kB / 1.356 GB, free: 5.109 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.915e-05/0.3948, allocations: 7.953 kB / 1.356 GB, free: 5.102 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003441/0.3982, allocations: 1.4 MB / 1.357 GB, free: 3.688 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.954e-06/0.3982, allocations: 4 kB / 1.357 GB, free: 3.684 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.3982, allocations: 7.984 kB / 1.357 GB, free: 3.676 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3982, allocations: 0 / 1.357 GB, free: 3.676 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003158/0.4014, allocations: 1.693 MB / 1.359 GB, free: 1.934 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.4014, allocations: 4 kB / 1.359 GB, free: 1.93 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008205/0.4022, allocations: 107.9 kB / 1.359 GB, free: 1.824 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.317e-06/0.4022, allocations: 3.938 kB / 1.359 GB, free: 1.82 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.116e-05/0.4023, allocations: 28 kB / 1.359 GB, free: 1.793 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.4023, allocations: 0 / 1.359 GB, free: 1.793 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4023, allocations: 0 / 1.359 GB, free: 1.793 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.4049, allocations: 1.47 MB / 1.36 GB, free: 308 kB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.687e-05/0.4049, allocations: 24 kB / 1.36 GB, free: 284 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.405, allocations: 11.94 kB / 1.36 GB, free: 272 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005165/0.4055, allocations: 11.98 kB / 1.36 GB, free: 260 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.4057, allocations: 47.89 kB / 1.36 GB, free: 212 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.572e-05/0.4058, allocations: 28 kB / 1.36 GB, free: 184 kB / 1.045 GB Notification: Performance of sorting global known variables: time 4.189e-05/0.4058, allocations: 79.28 kB / 1.36 GB, free: 104 kB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4058, allocations: 0 / 1.36 GB, free: 104 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.0006343/0.4065, allocations: 187.7 kB / 1.361 GB, free: 15.91 MB / 1.061 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.003424/0.4099, allocations: 2.126 MB / 1.363 GB, free: 13.76 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001412/0.4113, allocations: 0.7203 MB / 1.363 GB, free: 13.04 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.4113, allocations: 0 / 1.363 GB, free: 13.04 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0007038/0.412, allocations: 411.6 kB / 1.364 GB, free: 12.64 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.4124, allocations: 19.94 kB / 1.364 GB, free: 12.62 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008049/0.4204, allocations: 3.708 MB / 1.367 GB, free: 8.832 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001155/0.4205, allocations: 103.6 kB / 1.367 GB, free: 8.707 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001092/0.4216, allocations: 289.5 kB / 1.368 GB, free: 8.418 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006296/0.4223, allocations: 119.4 kB / 1.368 GB, free: 8.301 MB / 1.061 GB Notification: Performance of SimCode: time 1.744e-06/0.4223, allocations: 4 kB / 1.368 GB, free: 8.297 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05924/0.4815, allocations: 13.84 MB / 1.381 GB, free: 10.65 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.97, allocations: 3.938 kB / 1.381 GB, free: 10.64 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.277108943089843]