Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="Buildings_9_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.001268/0.001268, 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.001273/0.001273, allocations: 199.8 kB / 16.26 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.213/1.213, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.158/2.158, allocations: 390.2 MB / 0.6644 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 67.89 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4996/0.5008, allocations: 140.4 MB / 0.9492 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001497/0.5023, allocations: 0.6674 MB / 0.9499 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.5033, allocations: 1.275 MB / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.723e-05/0.5034, allocations: 1.406 kB / 0.9511 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.543e-05/0.5034, allocations: 3.938 kB / 0.9512 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 1.598e-05/0.5034, allocations: 0 / 0.9512 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.5037, allocations: 70.14 kB / 0.9512 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.166e-05/0.5038, allocations: 22.36 kB / 0.9512 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.157e-05/0.5038, allocations: 2.375 kB / 0.9512 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.784e-05/0.5038, allocations: 9.719 kB / 0.9513 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.743e-05/0.5039, allocations: 20.06 kB / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.928e-06/0.5039, allocations: 1.25 kB / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.5041, allocations: 100.6 kB / 0.9514 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.12e-05/0.5041, allocations: 9.484 kB / 0.9514 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.781e-05/0.5041, allocations: 12.08 kB / 0.9514 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.5042, allocations: 66.55 kB / 0.9515 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.5042, allocations: 0 / 0.9515 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.192e-06/0.5042, allocations: 5.469 kB / 0.9515 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.5042, allocations: 0 / 0.9515 GB, free: 7.379 MB / 0.7169 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.0002924/0.5045, allocations: 350.1 kB / 0.9518 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.5046, allocations: 9.625 kB / 0.9518 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.28e-05/0.5046, allocations: 36.12 kB / 0.9518 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.419e-05/0.5046, allocations: 2.312 kB / 0.9518 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.948e-05/0.5047, allocations: 165.8 kB / 0.952 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.5047, allocations: 1.75 kB / 0.952 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.5047, allocations: 11.12 kB / 0.952 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.108e-05/0.5048, allocations: 58.11 kB / 0.9521 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.5048, allocations: 3.906 kB / 0.9521 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.5048, allocations: 9.312 kB / 0.9521 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.5049, allocations: 0 / 0.9521 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.293e-05/0.5049, allocations: 29.7 kB / 0.9521 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.944e-05/0.505, allocations: 165.9 kB / 0.9523 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.569e-05/0.5051, allocations: 64.47 kB / 0.9523 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.39e-05/0.5051, allocations: 24.31 kB / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002976/0.5055, allocations: 0.5574 MB / 0.9529 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.555e-05/0.5055, allocations: 43.66 kB / 0.9529 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.5055, allocations: 1.219 kB / 0.9529 GB, free: 5.695 MB / 0.7169 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.01879/0.5243, allocations: 4.361 MB / 0.9572 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.355e-05/0.5243, allocations: 53.62 kB / 0.9572 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.879e-05/0.5244, allocations: 95.86 kB / 0.9573 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.698e-05/0.5244, allocations: 29.83 kB / 0.9574 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.152e-05/0.5245, allocations: 85.22 kB / 0.9574 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.933e-05/0.5246, allocations: 61.75 kB / 0.9575 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002361/0.5248, allocations: 92.7 kB / 0.9576 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.634e-05/0.5248, allocations: 320.4 kB / 0.9579 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000448/0.5253, allocations: 313.7 kB / 0.9582 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.5257, allocations: 307.3 kB / 0.9585 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.5271, allocations: 0.7735 MB / 0.9592 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.5271, allocations: 4 kB / 0.9592 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001361/0.5284, allocations: 0.7991 MB / 0.96 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.5285, allocations: 5.688 kB / 0.96 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.5285, allocations: 0 / 0.96 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.5285, allocations: 1.188 kB / 0.96 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007683/0.5293, allocations: 96.81 kB / 0.9601 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.5293, allocations: 0 / 0.9601 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004813/0.5298, allocations: 6.094 kB / 0.9601 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.604e-05/0.5298, allocations: 39.66 kB / 0.9602 GB, free: 1.391 MB / 0.7169 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.0001555/0.53, allocations: 124.8 kB / 0.9603 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.725e-05/0.5301, allocations: 7.375 kB / 0.9603 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002904/0.533, allocations: 1.403 MB / 0.9617 GB, free: 440 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.533, allocations: 4.5 kB / 0.9617 GB, free: 440 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.533, allocations: 1.094 kB / 0.9617 GB, free: 440 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.533, allocations: 3.984 kB / 0.9617 GB, free: 436 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002595/0.5356, allocations: 1.814 MB / 0.9634 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.5356, allocations: 0 / 0.9634 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007267/0.5364, allocations: 113.1 kB / 0.9636 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.5364, allocations: 2.094 kB / 0.9636 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.575e-05/0.5365, allocations: 29.88 kB / 0.9636 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.5365, allocations: 2.344 kB / 0.9636 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.5365, allocations: 0 / 0.9636 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.5386, allocations: 1.477 MB / 0.965 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.429e-05/0.5387, allocations: 89.23 kB / 0.9651 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.064e-05/0.5388, allocations: 15.41 kB / 0.9651 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004741/0.5392, allocations: 17.48 kB / 0.9651 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.5394, allocations: 46.53 kB / 0.9652 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-05/0.5395, allocations: 30.25 kB / 0.9652 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 2.686e-05/0.5395, allocations: 76.62 kB / 0.9653 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5395, allocations: 0 / 0.9653 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005145/0.54, allocations: 178.3 kB / 0.9655 GB, free: 14.05 MB / 0.7325 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.002682/0.5427, allocations: 2.128 MB / 0.9675 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001183/0.5439, allocations: 0.7445 MB / 0.9683 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5439, allocations: 1.344 kB / 0.9683 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005942/0.5445, allocations: 450.4 kB / 0.9687 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.5448, allocations: 23.02 kB / 0.9687 GB, free: 12 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006679/0.5515, allocations: 3.765 MB / 0.9724 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.5517, allocations: 0.7184 MB / 0.9731 GB, free: 8.789 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001333/0.5531, allocations: 295.8 kB / 0.9734 GB, free: 8.555 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005456/0.5536, allocations: 115.4 kB / 0.9735 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of SimCode: time 2.91e-07/0.5536, allocations: 0 / 0.9735 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.599/3.153, allocations: 12.58 MB / 0.9858 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/3.153, allocations: 230.7 kB / 0.986 GB, free: 11.82 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.733/5.886, allocations: 2.953 kB / 0.986 GB, free: 11.82 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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