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.001697/0.001697, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001634/0.001634, allocations: 192.7 kB / 16.14 MB, free: 6.711 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.449/1.449, allocations: 222.9 MB / 239.8 MB, free: 4.609 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.568/2.568, allocations: 390.2 MB / 0.6642 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 67.89 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8107/0.8122, allocations: 140.3 MB / 0.9489 GB, free: 9.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002602/0.8148, allocations: 0.6786 MB / 0.9496 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002374/0.8172, allocations: 1.287 MB / 0.9508 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.813e-05/0.8173, allocations: 0 / 0.9508 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.094e-05/0.8173, allocations: 1.375 kB / 0.9508 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.628e-05/0.8174, allocations: 0 / 0.9508 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005067/0.8179, allocations: 53.7 kB / 0.9509 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.135e-05/0.818, allocations: 30.86 kB / 0.9509 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.078e-05/0.8181, allocations: 1.375 kB / 0.9509 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.507e-05/0.8181, allocations: 13.47 kB / 0.9509 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.435e-05/0.8182, allocations: 16.05 kB / 0.951 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.8182, allocations: 1.375 kB / 0.951 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003452/0.8186, allocations: 97.39 kB / 0.9511 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.062e-05/0.8186, allocations: 9.359 kB / 0.9511 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.242e-05/0.8186, allocations: 10.69 kB / 0.9511 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.8188, allocations: 71.09 kB / 0.9511 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.8189, allocations: 0 / 0.9511 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.383e-06/0.8189, allocations: 0 / 0.9511 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.8189, allocations: 1.281 kB / 0.9511 GB, free: 7.348 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.0005259/0.8194, allocations: 349.1 kB / 0.9515 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.8195, allocations: 9.406 kB / 0.9515 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.588e-05/0.8195, allocations: 7.516 kB / 0.9515 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.715e-05/0.8196, allocations: 172.3 kB / 0.9517 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.8197, allocations: 7.094 kB / 0.9517 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.048e-05/0.8197, allocations: 3.531 kB / 0.9517 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001547/0.8199, allocations: 53.69 kB / 0.9517 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.8199, allocations: 7.891 kB / 0.9517 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.8199, allocations: 1.312 kB / 0.9517 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-06/0.8199, allocations: 0 / 0.9517 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.431e-05/0.82, allocations: 21.45 kB / 0.9517 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001678/0.8202, allocations: 165.6 kB / 0.9519 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.8203, allocations: 64.97 kB / 0.952 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.312e-05/0.8204, allocations: 32.27 kB / 0.952 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000434/0.8208, allocations: 0.5576 MB / 0.9525 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.8209, allocations: 35.81 kB / 0.9526 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.362e-06/0.8209, allocations: 0 / 0.9526 GB, free: 5.715 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.02389/0.8448, allocations: 4.37 MB / 0.9568 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.8449, allocations: 53.56 kB / 0.9569 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.777e-05/0.845, allocations: 94.94 kB / 0.957 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.8451, allocations: 38.83 kB / 0.957 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.334e-05/0.8452, allocations: 81.27 kB / 0.9571 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.8453, allocations: 61.56 kB / 0.9572 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000392/0.8457, allocations: 88.17 kB / 0.9572 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.384e-05/0.8458, allocations: 325 kB / 0.9575 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008409/0.8467, allocations: 305.9 kB / 0.9578 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008426/0.8475, allocations: 319.7 kB / 0.9581 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002223/0.8498, allocations: 0.7681 MB / 0.9589 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.8498, allocations: 1.156 kB / 0.9589 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002277/0.8521, allocations: 0.7981 MB / 0.9597 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.8521, allocations: 4.812 kB / 0.9597 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.8521, allocations: 3.984 kB / 0.9597 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/0.8522, allocations: 1.062 kB / 0.9597 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.8533, allocations: 92.2 kB / 0.9598 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.661e-05/0.8533, allocations: 5.531 kB / 0.9598 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006239/0.854, allocations: 9 kB / 0.9598 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.8541, allocations: 36.34 kB / 0.9598 GB, free: 1.406 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.0002633/0.8544, allocations: 124.5 kB / 0.9599 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.8545, allocations: 7.844 kB / 0.9599 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004742/0.8593, allocations: 1.403 MB / 0.9613 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.8593, allocations: 4.688 kB / 0.9613 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.8594, allocations: 0 / 0.9613 GB, free: 456 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.8594, allocations: 3.984 kB / 0.9613 GB, free: 452 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004479/0.8639, allocations: 1.818 MB / 0.9631 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.8639, allocations: 0 / 0.9631 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.8649, allocations: 113.6 kB / 0.9632 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.665e-05/0.865, allocations: 6.125 kB / 0.9632 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001278/0.8651, allocations: 29.33 kB / 0.9632 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.046e-05/0.8651, allocations: 6.125 kB / 0.9632 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.8652, allocations: 0 / 0.9632 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00308/0.8682, allocations: 1.474 MB / 0.9647 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.984e-05/0.8683, allocations: 97.97 kB / 0.9648 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.8685, allocations: 10.22 kB / 0.9648 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005003/0.869, allocations: 14.12 kB / 0.9648 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.8692, allocations: 42.5 kB / 0.9648 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-05/0.8692, allocations: 26.16 kB / 0.9649 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.723e-05/0.8693, allocations: 84.42 kB / 0.965 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8693, allocations: 0 / 0.965 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006993/0.87, allocations: 174.4 kB / 0.9651 GB, free: 14.06 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.0005927/0.8706, allocations: 227.3 kB / 0.9653 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001322/0.8719, allocations: 0.7277 MB / 0.966 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.8719, allocations: 1.5 kB / 0.966 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006822/0.8726, allocations: 450.5 kB / 0.9665 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.873, allocations: 23.39 kB / 0.9665 GB, free: 13.31 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003202/0.8762, allocations: 0.8499 MB / 0.9673 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.8765, allocations: 0.7175 MB / 0.968 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00145/0.878, allocations: 294.5 kB / 0.9683 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005912/0.8786, allocations: 92.53 kB / 0.9684 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of SimCode: time 2.364e-06/0.8786, allocations: 1.469 kB / 0.9684 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of Templates: time 0.01944/0.898, allocations: 10.72 MB / 0.9789 GB, free: 2.832 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