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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 109.7 kB / 17.54 MB, free: 4.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 190.6 kB / 20.71 MB, free: 1.484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 225.6 MB / 249.3 MB, free: 3.188 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.457/2.457, allocations: 476.7 MB / 0.7628 GB, free: 15.17 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 67.89 kB / 1.107 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8092/0.811, allocations: 168.7 MB / 1.271 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001462/0.8125, allocations: 0.6323 MB / 1.272 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001316/0.8138, allocations: 1.3 MB / 1.273 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.232e-05/0.8138, allocations: 0 / 1.273 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.647e-05/0.8138, allocations: 4.594 kB / 1.273 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 1.687e-05/0.8138, allocations: 0 / 1.273 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000348/0.8142, allocations: 77.69 kB / 1.273 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 5.659e-05/0.8142, allocations: 23.02 kB / 1.273 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.094e-05/0.8143, allocations: 3.234 kB / 1.273 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.119e-05/0.8143, allocations: 6.484 kB / 1.273 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.729e-05/0.8144, allocations: 16.83 kB / 1.273 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.17e-05/0.8144, allocations: 5.562 kB / 1.273 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.8146, allocations: 98.64 kB / 1.274 GB, free: 6.309 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.525e-05/0.8146, allocations: 7.156 kB / 1.274 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.366e-05/0.8146, allocations: 16.86 kB / 1.274 GB, free: 6.293 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.8148, allocations: 72.2 kB / 1.274 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.8148, allocations: 0 / 1.274 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.462e-06/0.8148, allocations: 0 / 1.274 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.8148, allocations: 0.8438 kB / 1.274 GB, free: 6.27 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.0003535/0.8151, allocations: 351.5 kB / 1.274 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.8152, allocations: 13.78 kB / 1.274 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.227e-05/0.8152, allocations: 32.73 kB / 1.274 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.476e-05/0.8152, allocations: 4 kB / 1.274 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.906e-05/0.8153, allocations: 166.6 kB / 1.274 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.434e-06/0.8153, allocations: 2.312 kB / 1.274 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.362e-05/0.8153, allocations: 6.344 kB / 1.274 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.8154, allocations: 61.5 kB / 1.274 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.8154, allocations: 0 / 1.274 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.8154, allocations: 1.094 kB / 1.274 GB, free: 5.609 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.8155, allocations: 5.094 kB / 1.274 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.412e-05/0.8155, allocations: 25.36 kB / 1.274 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001201/0.8156, allocations: 171.8 kB / 1.274 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.8157, allocations: 58.75 kB / 1.274 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.7e-05/0.8158, allocations: 23.27 kB / 1.275 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003114/0.8161, allocations: 0.5594 MB / 1.275 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.276e-05/0.8161, allocations: 40.59 kB / 1.275 GB, free: 4.637 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.412e-06/0.8161, allocations: 0 / 1.275 GB, free: 4.637 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.01834/0.8344, allocations: 4.375 MB / 1.279 GB, free: 2.789 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.992e-05/0.8345, allocations: 53.41 kB / 1.279 GB, free: 2.727 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.225e-05/0.8345, allocations: 92.48 kB / 1.28 GB, free: 2.629 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.678e-05/0.8346, allocations: 30.98 kB / 1.28 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 1.234e-05/0.8346, allocations: 80.14 kB / 1.28 GB, free: 2.512 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.09e-05/0.8347, allocations: 60.3 kB / 1.28 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002212/0.8349, allocations: 92.11 kB / 1.28 GB, free: 2.438 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.638e-05/0.8349, allocations: 328.1 kB / 1.28 GB, free: 2.113 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/0.8354, allocations: 310.9 kB / 1.28 GB, free: 1.984 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004671/0.8359, allocations: 311.6 kB / 1.281 GB, free: 1.859 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001363/0.8372, allocations: 0.7651 MB / 1.281 GB, free: 1.527 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.8372, allocations: 3.938 kB / 1.281 GB, free: 1.527 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001373/0.8386, allocations: 0.8015 MB / 1.282 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.8386, allocations: 5.094 kB / 1.282 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.8386, allocations: 0 / 1.282 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.8386, allocations: 2.125 kB / 1.282 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008027/0.8395, allocations: 94.48 kB / 1.282 GB, free: 1.188 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.8395, allocations: 5.5 kB / 1.282 GB, free: 1.184 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000493/0.84, allocations: 5.5 kB / 1.282 GB, free: 1.184 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-05/0.84, allocations: 37.05 kB / 1.282 GB, free: 1.18 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.0001497/0.8402, allocations: 124.1 kB / 1.282 GB, free: 1.055 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.139e-05/0.8403, allocations: 6.109 kB / 1.282 GB, free: 1.051 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002772/0.843, allocations: 1.401 MB / 1.284 GB, free: 404 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.843, allocations: 4.125 kB / 1.284 GB, free: 404 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.843, allocations: 1.406 kB / 1.284 GB, free: 404 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.391e-06/0.843, allocations: 2.062 kB / 1.284 GB, free: 404 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002692/0.8457, allocations: 1.822 MB / 1.286 GB, free: 15.34 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.8457, allocations: 0 / 1.286 GB, free: 15.34 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007438/0.8465, allocations: 117.8 kB / 1.286 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.8465, allocations: 2.875 kB / 1.286 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.71e-05/0.8466, allocations: 30.19 kB / 1.286 GB, free: 15.31 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.8466, allocations: 2.516 kB / 1.286 GB, free: 15.31 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.8466, allocations: 1.125 kB / 1.286 GB, free: 15.31 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.8489, allocations: 1.468 MB / 1.287 GB, free: 14.56 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.332e-05/0.8489, allocations: 93.94 kB / 1.287 GB, free: 14.45 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.976e-05/0.849, allocations: 14.08 kB / 1.287 GB, free: 14.44 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.8495, allocations: 9.25 kB / 1.287 GB, free: 14.44 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.8496, allocations: 45.64 kB / 1.287 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-05/0.8497, allocations: 33.67 kB / 1.287 GB, free: 14.43 MB / 1.014 GB Notification: Performance of sorting global known variables: time 3.844e-05/0.8497, allocations: 77.56 kB / 1.287 GB, free: 14.35 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.8497, allocations: 0 / 1.287 GB, free: 14.35 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0005673/0.8503, allocations: 184.3 kB / 1.288 GB, free: 14.32 MB / 1.014 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.002997/0.8533, allocations: 2.125 MB / 1.29 GB, free: 13 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001203/0.8545, allocations: 0.722 MB / 1.29 GB, free: 12.71 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.8545, allocations: 0 / 1.29 GB, free: 12.71 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.8552, allocations: 398.7 kB / 1.291 GB, free: 12.55 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.8555, allocations: 20.31 kB / 1.291 GB, free: 12.54 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007677/0.8632, allocations: 3.724 MB / 1.294 GB, free: 10.33 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.8635, allocations: 0.715 MB / 1.295 GB, free: 9.629 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009278/0.8644, allocations: 295.2 kB / 1.295 GB, free: 9.48 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005474/0.865, allocations: 117.5 kB / 1.296 GB, free: 9.449 MB / 1.014 GB Notification: Performance of SimCode: time 6.61e-07/0.865, allocations: 3.938 kB / 1.296 GB, free: 9.445 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03857/0.9036, allocations: 13.06 MB / 1.308 GB, free: 8.414 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.124/8.028, allocations: 7.5 kB / 1.308 GB, free: 8.414 MB / 1.014 GB " [Timeout remaining time 292] (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 --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] "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " [Timeout remaining time 300] "" Variables in the reference:time,x,y,der(x),der(y),d2y,d3y Variables in the result:d1y,d2y,d3y,delta,deltax,der(d1y),der(d2y),der(deltax),der(der(deltax)),der(der(der(deltax))),der(der(der(x))),der(der(x)),der(x),der(y),der(y_comp),err,time,x,y,y_comp [Calling sys.exit(0), Time elapsed: 13.254517487999692]