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.001874/0.001874, allocations: 117.4 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.002449/0.002449, allocations: 214.3 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.642/1.642, 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 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.029/3.029, allocations: 0.49 GB / 0.7923 GB, free: 1.449 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_12_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.002115/0.002115, allocations: 75.89 kB / 1.15 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.021/1.024, allocations: 176.1 MB / 1.322 GB, free: 24.78 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001601/1.025, allocations: 0.616 MB / 1.322 GB, free: 24.4 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001363/1.027, allocations: 1.378 MB / 1.323 GB, free: 23.39 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.202e-05/1.027, allocations: 0 / 1.323 GB, free: 23.39 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.432e-05/1.027, allocations: 3.938 kB / 1.323 GB, free: 23.38 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.912e-05/1.027, allocations: 0 / 1.323 GB, free: 23.38 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003982/1.027, allocations: 74.56 kB / 1.324 GB, free: 23.35 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.826e-05/1.027, allocations: 29.02 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.53e-05/1.027, allocations: 6.703 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 2.402e-05/1.027, allocations: 5.188 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.777e-05/1.027, allocations: 19.62 kB / 1.324 GB, free: 23.33 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.264e-05/1.027, allocations: 4 kB / 1.324 GB, free: 23.32 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002712/1.028, allocations: 112.6 kB / 1.324 GB, free: 23.3 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.262e-05/1.028, allocations: 7.938 kB / 1.324 GB, free: 23.29 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.42e-05/1.028, allocations: 18.14 kB / 1.324 GB, free: 23.28 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000154/1.028, allocations: 72.92 kB / 1.324 GB, free: 23.26 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/1.028, allocations: 0 / 1.324 GB, free: 23.26 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.553e-06/1.028, allocations: 3.031 kB / 1.324 GB, free: 23.26 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.013e-06/1.028, allocations: 0 / 1.324 GB, free: 23.26 MB / 1.061 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.0004499/1.028, allocations: 356.8 kB / 1.324 GB, free: 22.88 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/1.028, allocations: 19.77 kB / 1.324 GB, free: 22.88 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.322e-05/1.028, allocations: 192 / 1.324 GB, free: 22.88 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.183e-05/1.028, allocations: 34.75 kB / 1.324 GB, free: 22.83 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.959e-05/1.028, allocations: 3.906 kB / 1.324 GB, free: 22.83 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/1.028, allocations: 170.8 kB / 1.324 GB, free: 22.63 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/1.028, allocations: 4.312 kB / 1.324 GB, free: 22.63 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.754e-05/1.028, allocations: 3.25 kB / 1.324 GB, free: 22.63 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/1.029, allocations: 59.58 kB / 1.324 GB, free: 22.58 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/1.029, allocations: 2.875 kB / 1.324 GB, free: 22.58 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/1.029, allocations: 4 kB / 1.324 GB, free: 22.58 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/1.029, allocations: 0 / 1.324 GB, free: 22.58 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.692e-05/1.029, allocations: 20.94 kB / 1.324 GB, free: 22.57 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001525/1.029, allocations: 169.4 kB / 1.325 GB, free: 22.38 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/1.029, allocations: 55.59 kB / 1.325 GB, free: 22.34 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.041e-05/1.029, allocations: 26.64 kB / 1.325 GB, free: 22.32 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003805/1.029, allocations: 0.5638 MB / 1.325 GB, free: 21.66 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/1.029, allocations: 33.5 kB / 1.325 GB, free: 21.62 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/1.029, allocations: 0 / 1.325 GB, free: 21.62 MB / 1.061 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.02044/1.05, allocations: 4.396 MB / 1.33 GB, free: 19.77 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/1.05, allocations: 53.75 kB / 1.33 GB, free: 19.71 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.52e-05/1.05, allocations: 91.02 kB / 1.33 GB, free: 19.61 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.49e-05/1.05, allocations: 34.39 kB / 1.33 GB, free: 19.57 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.432e-05/1.05, allocations: 85.23 kB / 1.33 GB, free: 19.49 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/1.05, allocations: 61.7 kB / 1.33 GB, free: 19.44 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/1.05, allocations: 94.39 kB / 1.33 GB, free: 19.41 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.005e-05/1.05, allocations: 323.6 kB / 1.33 GB, free: 19.09 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005255/1.051, allocations: 304.4 kB / 1.331 GB, free: 18.96 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000527/1.051, allocations: 317.1 kB / 1.331 GB, free: 18.83 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/1.053, allocations: 0.7701 MB / 1.332 GB, free: 18.5 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/1.053, allocations: 4.609 kB / 1.332 GB, free: 18.49 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002037/1.055, allocations: 0.7972 MB / 1.332 GB, free: 18.16 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.376e-05/1.055, allocations: 5.094 kB / 1.332 GB, free: 18.16 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/1.055, allocations: 0.5 kB / 1.332 GB, free: 18.16 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.919e-05/1.055, allocations: 5.781 kB / 1.332 GB, free: 18.16 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/1.056, allocations: 94.66 kB / 1.333 GB, free: 18.16 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/1.056, allocations: 1.281 kB / 1.333 GB, free: 18.16 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005398/1.057, allocations: 9.25 kB / 1.333 GB, free: 18.15 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/1.057, allocations: 37.44 kB / 1.333 GB, free: 18.15 MB / 1.061 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.0001962/1.057, allocations: 120.4 kB / 1.333 GB, free: 18.03 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.233e-05/1.057, allocations: 7.516 kB / 1.333 GB, free: 18.02 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/1.061, allocations: 1.402 MB / 1.334 GB, free: 17.37 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/1.061, allocations: 4.641 kB / 1.334 GB, free: 17.37 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/1.061, allocations: 0 / 1.334 GB, free: 17.37 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/1.061, allocations: 3.25 kB / 1.334 GB, free: 17.37 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002967/1.064, allocations: 1.815 MB / 1.336 GB, free: 16.32 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/1.064, allocations: 0.5625 kB / 1.336 GB, free: 16.32 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008204/1.064, allocations: 110.1 kB / 1.336 GB, free: 16.31 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/1.064, allocations: 5.312 kB / 1.336 GB, free: 16.3 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.425e-05/1.064, allocations: 27.86 kB / 1.336 GB, free: 16.3 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/1.064, allocations: 5.203 kB / 1.336 GB, free: 16.3 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/1.064, allocations: 5.438 kB / 1.336 GB, free: 16.29 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/1.067, allocations: 1.471 MB / 1.337 GB, free: 15.54 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.464e-05/1.067, allocations: 94.89 kB / 1.338 GB, free: 15.43 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.021e-05/1.067, allocations: 11.33 kB / 1.338 GB, free: 15.42 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005513/1.067, allocations: 9.688 kB / 1.338 GB, free: 15.42 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/1.068, allocations: 42.77 kB / 1.338 GB, free: 15.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.78e-05/1.068, allocations: 28.86 kB / 1.338 GB, free: 15.41 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.095e-05/1.068, allocations: 80.56 kB / 1.338 GB, free: 15.34 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/1.068, allocations: 0 / 1.338 GB, free: 15.34 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0006315/1.068, allocations: 186.5 kB / 1.338 GB, free: 15.3 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.002891/1.071, allocations: 2.141 MB / 1.34 GB, free: 13.97 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001275/1.072, allocations: 0.7148 MB / 1.341 GB, free: 13.69 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/1.072, allocations: 0 / 1.341 GB, free: 13.69 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0006131/1.073, allocations: 409.9 kB / 1.341 GB, free: 13.52 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003485/1.073, allocations: 23.73 kB / 1.341 GB, free: 13.5 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007512/1.081, allocations: 3.719 MB / 1.345 GB, free: 11.3 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001346/1.081, allocations: 0.7147 MB / 1.345 GB, free: 10.61 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0009771/1.082, allocations: 294.4 kB / 1.346 GB, free: 10.45 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006247/1.083, allocations: 117.4 kB / 1.346 GB, free: 10.42 MB / 1.061 GB Notification: Performance of SimCode: time 1.082e-06/1.083, allocations: 0 / 1.346 GB, free: 10.42 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0456/1.128, allocations: 12.92 MB / 1.358 GB, free: 9.391 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.57/9.698, allocations: 15.36 kB / 1.358 GB, free: 9.383 MB / 1.061 GB " [Timeout remaining time 290] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) [Timeout 420.0] 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/jenkins1/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: 16.74060073896544]