Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002075/0.002076, allocations: 194.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.468/2.468, allocations: 437 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 71.84 kB / 0.8694 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6669/0.6684, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002346/0.6708, allocations: 0.6134 MB / 1.018 GB, free: 1.852 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001965/0.6727, allocations: 1.275 MB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.815e-05/0.6728, allocations: 3.938 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.794e-05/0.6728, allocations: 3.938 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.023e-05/0.6729, allocations: 0 / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005462/0.6734, allocations: 75.73 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.484e-05/0.6735, allocations: 19.97 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.148e-05/0.6735, allocations: 8 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.714e-05/0.6736, allocations: 8 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.817e-05/0.6737, allocations: 19.92 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.6737, allocations: 4 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002473/0.6739, allocations: 107.8 kB / 1.02 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.815e-05/0.674, allocations: 7.938 kB / 1.02 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.674, allocations: 11.92 kB / 1.02 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.6742, allocations: 67.91 kB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.6742, allocations: 0 / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.794e-06/0.6742, allocations: 0 / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.656e-06/0.6742, allocations: 0 / 1.02 GB, free: 232 kB / 0.7637 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.0004896/0.6747, allocations: 357.7 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.6747, allocations: 12.03 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.837e-05/0.6748, allocations: 34.75 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.656e-05/0.6748, allocations: 8.922 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.675, allocations: 160.4 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.675, allocations: 384 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.675, allocations: 12.28 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001435/0.6752, allocations: 57.73 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.6752, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.6752, allocations: 11.94 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.6752, allocations: 0 / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.989e-05/0.6753, allocations: 27.97 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001999/0.6755, allocations: 169.6 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.6756, allocations: 54.64 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.913e-05/0.6757, allocations: 25 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005679/0.6763, allocations: 0.5661 MB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.6763, allocations: 38.5 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.6763, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 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.02/0.6963, allocations: 4.366 MB / 1.025 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.6964, allocations: 51.41 kB / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.234e-05/0.6965, allocations: 97.86 kB / 1.025 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.363e-05/0.6965, allocations: 25.7 kB / 1.025 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.856e-05/0.6966, allocations: 80.14 kB / 1.026 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.6967, allocations: 63.09 kB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002576/0.697, allocations: 97.8 kB / 1.026 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.6971, allocations: 318.8 kB / 1.026 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005277/0.6976, allocations: 311.9 kB / 1.026 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005041/0.6981, allocations: 303.9 kB / 1.027 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.6997, allocations: 0.7761 MB / 1.027 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.6997, allocations: 0 / 1.027 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001559/0.7013, allocations: 0.8038 MB / 1.028 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.7013, allocations: 4 kB / 1.028 GB, free: 6.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.7013, allocations: 4 kB / 1.028 GB, free: 6.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.7013, allocations: 4 kB / 1.028 GB, free: 6.926 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008436/0.7022, allocations: 95.94 kB / 1.028 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.7022, allocations: 4 kB / 1.028 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005434/0.7027, allocations: 4 kB / 1.028 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.668e-05/0.7028, allocations: 35.98 kB / 1.028 GB, free: 6.789 MB / 0.7794 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.0001949/0.703, allocations: 125.7 kB / 1.028 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.708e-05/0.7031, allocations: 7.906 kB / 1.028 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003344/0.7065, allocations: 1.395 MB / 1.03 GB, free: 5.25 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.7065, allocations: 4 kB / 1.03 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.7065, allocations: 0 / 1.03 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.7065, allocations: 7.922 kB / 1.03 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002867/0.7094, allocations: 1.818 MB / 1.032 GB, free: 3.359 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.7094, allocations: 0 / 1.032 GB, free: 3.359 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007941/0.7102, allocations: 107.9 kB / 1.032 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.397e-06/0.7102, allocations: 4 kB / 1.032 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.099e-05/0.7103, allocations: 27.94 kB / 1.032 GB, free: 3.223 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.541e-06/0.7103, allocations: 4 kB / 1.032 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.7103, allocations: 4.031 kB / 1.032 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002319/0.7126, allocations: 1.465 MB / 1.033 GB, free: 1.73 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.7127, allocations: 88.95 kB / 1.033 GB, free: 1.625 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.484e-05/0.7128, allocations: 11.94 kB / 1.033 GB, free: 1.613 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005439/0.7133, allocations: 8 kB / 1.033 GB, free: 1.605 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.7135, allocations: 51.89 kB / 1.033 GB, free: 1.555 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.365e-05/0.7136, allocations: 36.06 kB / 1.033 GB, free: 1.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.191e-05/0.7136, allocations: 75.28 kB / 1.033 GB, free: 1.445 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.835e-06/0.7136, allocations: 0 / 1.033 GB, free: 1.445 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005606/0.7142, allocations: 183.9 kB / 1.034 GB, free: 1.266 MB / 0.7794 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.003036/0.7172, allocations: 2.135 MB / 1.036 GB, free: 15.1 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001273/0.7185, allocations: 0.7417 MB / 1.036 GB, free: 14.36 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.7185, allocations: 0 / 1.036 GB, free: 14.36 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006515/0.7192, allocations: 451.8 kB / 1.037 GB, free: 13.92 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.7195, allocations: 19.88 kB / 1.037 GB, free: 13.9 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007763/0.7273, allocations: 3.716 MB / 1.04 GB, free: 10.1 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.7276, allocations: 0.7142 MB / 1.041 GB, free: 9.359 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001403/0.729, allocations: 289.5 kB / 1.041 GB, free: 9.074 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005477/0.7295, allocations: 119.4 kB / 1.042 GB, free: 8.957 MB / 0.795 GB Notification: Performance of SimCode: time 4.21e-07/0.7296, allocations: 0 / 1.042 GB, free: 8.957 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03298/0.7625, allocations: 12.66 MB / 1.054 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.222/7.985, allocations: 13.45 kB / 1.054 GB, free: 12.47 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " 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