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: translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.|d2y|d3y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, 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.001104/0.001104, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.339/2.339, allocations: 390.2 MB / 0.6646 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 63.91 kB / 0.8125 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.748/0.7494, allocations: 140.4 MB / 0.9496 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002165/0.7517, allocations: 0.6195 MB / 0.9502 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001729/0.7534, allocations: 1.282 MB / 0.9514 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.902e-05/0.7535, allocations: 1.469 kB / 0.9515 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.489e-05/0.7535, allocations: 0 / 0.9515 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.876e-05/0.7536, allocations: 0 / 0.9515 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004919/0.7541, allocations: 70.53 kB / 0.9515 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.442e-05/0.7541, allocations: 18.02 kB / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.171e-05/0.7542, allocations: 22.48 kB / 0.9516 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.246e-05/0.7542, allocations: 9.359 kB / 0.9516 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.861e-05/0.7543, allocations: 15.83 kB / 0.9516 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.7543, allocations: 1.562 kB / 0.9516 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.7546, allocations: 104.6 kB / 0.9517 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.464e-05/0.7546, allocations: 1.844 kB / 0.9517 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.746e-05/0.7546, allocations: 11.5 kB / 0.9517 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.7548, allocations: 66.94 kB / 0.9518 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.7548, allocations: 0 / 0.9518 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7548, allocations: 1.188 kB / 0.9518 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.7548, allocations: 0 / 0.9518 GB, free: 7.488 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.0004357/0.7552, allocations: 357.1 kB / 0.9521 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.7553, allocations: 9.438 kB / 0.9521 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.577e-05/0.7553, allocations: 3.156 kB / 0.9521 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.369e-05/0.7554, allocations: 165.9 kB / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.7554, allocations: 1.938 kB / 0.9523 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.7554, allocations: 11.03 kB / 0.9523 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.7556, allocations: 54.23 kB / 0.9523 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.7556, allocations: 7.906 kB / 0.9523 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.7556, allocations: 1.062 kB / 0.9523 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.7556, allocations: 1.281 kB / 0.9523 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.274e-05/0.7557, allocations: 24.64 kB / 0.9524 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001384/0.7558, allocations: 169.5 kB / 0.9525 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/0.7559, allocations: 59.95 kB / 0.9526 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.589e-05/0.756, allocations: 25.42 kB / 0.9526 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003612/0.7564, allocations: 0.561 MB / 0.9532 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.7564, allocations: 39.91 kB / 0.9532 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.793e-06/0.7564, allocations: 0 / 0.9532 GB, free: 5.852 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.01931/0.7757, allocations: 4.374 MB / 0.9575 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.7758, allocations: 54.06 kB / 0.9575 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.633e-05/0.7759, allocations: 90.92 kB / 0.9576 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.704e-05/0.776, allocations: 31.2 kB / 0.9576 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.908e-05/0.776, allocations: 80.14 kB / 0.9577 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.7761, allocations: 61.94 kB / 0.9578 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002602/0.7764, allocations: 96.66 kB / 0.9579 GB, free: 3 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.732e-05/0.7765, allocations: 320.9 kB / 0.9582 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005237/0.777, allocations: 309.6 kB / 0.9585 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000519/0.7775, allocations: 313.6 kB / 0.9588 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001534/0.779, allocations: 0.7705 MB / 0.9595 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.7791, allocations: 1.219 kB / 0.9595 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001578/0.7807, allocations: 0.802 MB / 0.9603 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.7807, allocations: 5.406 kB / 0.9603 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.7807, allocations: 5.094 kB / 0.9603 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.7807, allocations: 1.312 kB / 0.9603 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008701/0.7816, allocations: 95.08 kB / 0.9604 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.7816, allocations: 1.25 kB / 0.9604 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005459/0.7822, allocations: 9.453 kB / 0.9604 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.985e-05/0.7823, allocations: 36.42 kB / 0.9604 GB, free: 1.539 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.0001724/0.7825, allocations: 117.2 kB / 0.9606 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.943e-05/0.7825, allocations: 6.844 kB / 0.9606 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003339/0.7859, allocations: 1.411 MB / 0.9619 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.7859, allocations: 8.359 kB / 0.962 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.7859, allocations: 1.125 kB / 0.962 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.7859, allocations: 0 / 0.962 GB, free: 0.5742 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003293/0.7892, allocations: 1.806 MB / 0.9637 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.261e-06/0.7893, allocations: 4 kB / 0.9637 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008117/0.7901, allocations: 109.3 kB / 0.9638 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.7901, allocations: 1.375 kB / 0.9638 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.368e-05/0.7902, allocations: 33.55 kB / 0.9639 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.7902, allocations: 6.844 kB / 0.9639 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.7902, allocations: 0 / 0.9639 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002676/0.7929, allocations: 1.477 MB / 0.9653 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.504e-05/0.793, allocations: 91.23 kB / 0.9654 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.355e-05/0.7931, allocations: 9.156 kB / 0.9654 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005406/0.7936, allocations: 10.25 kB / 0.9654 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.7938, allocations: 46.31 kB / 0.9655 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.843e-05/0.7939, allocations: 34.36 kB / 0.9655 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.984e-05/0.7939, allocations: 76.81 kB / 0.9656 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7939, allocations: 0 / 0.9656 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008016/0.7947, allocations: 178.9 kB / 0.9657 GB, free: 14.21 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.0006448/0.7954, allocations: 222.9 kB / 0.9659 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001517/0.7969, allocations: 0.736 MB / 0.9667 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7969, allocations: 4.094 kB / 0.9667 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008448/0.7978, allocations: 451.3 kB / 0.9671 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003926/0.7982, allocations: 22.31 kB / 0.9671 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003696/0.8019, allocations: 0.7985 MB / 0.9679 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.8022, allocations: 0.7173 MB / 0.9686 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001447/0.8037, allocations: 293.1 kB / 0.9689 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005378/0.8042, allocations: 94 kB / 0.969 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of SimCode: time 3.516e-06/0.8043, allocations: 3.938 kB / 0.969 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of Templates: time 0.02028/0.8245, allocations: 11.23 MB / 0.9799 GB, free: 2.125 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches