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.001684/0.001684, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001975/0.001975, allocations: 190.1 kB / 16.25 MB, free: 6.621 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.434/1.434, allocations: 222.9 MB / 239.9 MB, free: 4.43 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.618/2.618, allocations: 437 MB / 0.7101 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 63.91 kB / 0.8689 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6952/0.6968, allocations: 151.6 MB / 1.017 GB, free: 2.707 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001855/0.6987, allocations: 0.6839 MB / 1.018 GB, free: 2.02 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001544/0.7002, allocations: 1.268 MB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.331e-05/0.7003, allocations: 0 / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.7003, allocations: 3.938 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.115e-05/0.7003, allocations: 0 / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004004/0.7008, allocations: 71.81 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.144e-05/0.7008, allocations: 19.98 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.955e-05/0.7009, allocations: 0 / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.671e-05/0.7009, allocations: 15.97 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.855e-05/0.701, allocations: 15.92 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.701, allocations: 0 / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002096/0.7012, allocations: 99.89 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.496e-05/0.7012, allocations: 11.92 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.397e-05/0.7012, allocations: 7.938 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.7014, allocations: 67.89 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.7014, allocations: 4 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.212e-06/0.7014, allocations: 0 / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.164e-06/0.7014, allocations: 4 kB / 1.019 GB, free: 428 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.0004206/0.7018, allocations: 359 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.7019, allocations: 8.031 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.061e-05/0.7019, allocations: 38.67 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.087e-05/0.702, allocations: 4.938 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.957e-05/0.7021, allocations: 160.4 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.7021, allocations: 8.375 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.7021, allocations: 8.281 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.7023, allocations: 57.8 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.7023, allocations: 11.92 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.7023, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.7023, allocations: 4 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.483e-05/0.7024, allocations: 23.92 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001545/0.7025, allocations: 165.6 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001067/0.7027, allocations: 66.55 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.912e-05/0.7027, allocations: 20.86 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004494/0.7032, allocations: 0.5583 MB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.7032, allocations: 38.5 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.7032, allocations: 0 / 1.021 GB, free: 14.61 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.02004/0.7233, allocations: 4.381 MB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.7233, allocations: 55.41 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.647e-05/0.7234, allocations: 93.86 kB / 1.025 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 8.06e-05/0.7235, allocations: 33.64 kB / 1.025 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.58e-05/0.7235, allocations: 84.14 kB / 1.025 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.7236, allocations: 55.11 kB / 1.025 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/0.7239, allocations: 93.66 kB / 1.025 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001011/0.724, allocations: 318.8 kB / 1.026 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005106/0.7245, allocations: 311.9 kB / 1.026 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004958/0.725, allocations: 307.9 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.7264, allocations: 0.7718 MB / 1.027 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.7265, allocations: 8.062 kB / 1.027 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001476/0.7279, allocations: 0.7989 MB / 1.028 GB, free: 7.121 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.728, allocations: 4 kB / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.728, allocations: 0 / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.728, allocations: 4 kB / 1.028 GB, free: 7.113 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007952/0.7288, allocations: 95.88 kB / 1.028 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.7288, allocations: 0.9375 kB / 1.028 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000496/0.7293, allocations: 8 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.587e-05/0.7294, allocations: 31.98 kB / 1.028 GB, free: 6.98 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.0002024/0.7296, allocations: 129.7 kB / 1.028 GB, free: 6.844 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.809e-05/0.7297, allocations: 7.906 kB / 1.028 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003311/0.733, allocations: 1.395 MB / 1.029 GB, free: 5.438 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.7331, allocations: 4 kB / 1.029 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.7331, allocations: 0 / 1.029 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.7331, allocations: 0 / 1.029 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002897/0.736, allocations: 1.81 MB / 1.031 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.736, allocations: 0 / 1.031 GB, free: 3.562 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007752/0.7368, allocations: 115.9 kB / 1.031 GB, free: 3.449 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/0.7368, allocations: 3.984 kB / 1.031 GB, free: 3.445 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.273e-05/0.7369, allocations: 31.94 kB / 1.031 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.7369, allocations: 0 / 1.031 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.7369, allocations: 0 / 1.031 GB, free: 3.414 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002255/0.7392, allocations: 1.468 MB / 1.033 GB, free: 1.926 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.7392, allocations: 96.94 kB / 1.033 GB, free: 1.812 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.518e-05/0.7393, allocations: 20 kB / 1.033 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004988/0.7398, allocations: 12 kB / 1.033 GB, free: 1.781 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.74, allocations: 39.97 kB / 1.033 GB, free: 1.742 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.69e-05/0.7401, allocations: 31.98 kB / 1.033 GB, free: 1.711 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.923e-05/0.7401, allocations: 75.28 kB / 1.033 GB, free: 1.637 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7401, allocations: 0 / 1.033 GB, free: 1.637 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005897/0.7407, allocations: 180 kB / 1.033 GB, free: 1.461 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.002868/0.7436, allocations: 2.139 MB / 1.035 GB, free: 15.29 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001248/0.7449, allocations: 0.7439 MB / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7449, allocations: 0 / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006218/0.7455, allocations: 451.8 kB / 1.036 GB, free: 14.11 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.7458, allocations: 24 kB / 1.036 GB, free: 14.09 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007282/0.7531, allocations: 3.761 MB / 1.04 GB, free: 10.24 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.7534, allocations: 0.7182 MB / 1.041 GB, free: 9.496 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001484/0.7549, allocations: 297.5 kB / 1.041 GB, free: 9.203 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005922/0.7555, allocations: 115.4 kB / 1.041 GB, free: 9.09 MB / 0.795 GB Notification: Performance of SimCode: time 4.41e-07/0.7555, allocations: 0 / 1.041 GB, free: 9.09 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02976/0.7853, allocations: 12.59 MB / 1.053 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001998/0.7855, allocations: 224.3 kB / 1.054 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/2.555, allocations: 0 / 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