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.001443/0.001443, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001419/0.001419, allocations: 193.9 kB / 16.25 MB, free: 6.637 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.445/1.445, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.521/2.521, allocations: 390.2 MB / 0.6643 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 68.08 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7958/0.7974, allocations: 140.4 MB / 0.9491 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002421/0.7999, allocations: 0.6822 MB / 0.9498 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001692/0.8016, allocations: 1.279 MB / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.075e-05/0.8017, allocations: 1.375 kB / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.12e-05/0.8017, allocations: 0 / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.108e-05/0.8018, allocations: 0 / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004667/0.8022, allocations: 58 kB / 0.9511 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.04e-05/0.8023, allocations: 22.94 kB / 0.9511 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.993e-05/0.8024, allocations: 6.734 kB / 0.9511 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.52e-05/0.8024, allocations: 12.11 kB / 0.9511 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.674e-05/0.8025, allocations: 17.42 kB / 0.9511 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.8025, allocations: 1.375 kB / 0.9511 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002382/0.8027, allocations: 103.9 kB / 0.9512 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.667e-05/0.8028, allocations: 5.375 kB / 0.9512 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.53e-05/0.8028, allocations: 8.062 kB / 0.9512 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.8029, allocations: 71.34 kB / 0.9513 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.803, allocations: 0 / 0.9513 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.435e-06/0.803, allocations: 0 / 0.9513 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.803, allocations: 4 kB / 0.9513 GB, free: 7.465 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.0005029/0.8035, allocations: 356.1 kB / 0.9517 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.8035, allocations: 9.625 kB / 0.9517 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.8036, allocations: 7.688 kB / 0.9517 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.331e-05/0.8037, allocations: 160.4 kB / 0.9518 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.8037, allocations: 7.125 kB / 0.9518 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/0.8037, allocations: 3.125 kB / 0.9518 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.8039, allocations: 64.92 kB / 0.9519 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.8039, allocations: 5.281 kB / 0.9519 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.8039, allocations: 7.922 kB / 0.9519 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.8039, allocations: 1.375 kB / 0.9519 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.033e-05/0.804, allocations: 21.73 kB / 0.9519 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002062/0.8042, allocations: 169.8 kB / 0.9521 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.8044, allocations: 59.58 kB / 0.9521 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.829e-05/0.8045, allocations: 28.05 kB / 0.9522 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004091/0.8049, allocations: 0.5621 MB / 0.9527 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.8049, allocations: 36.06 kB / 0.9528 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.8049, allocations: 0 / 0.9528 GB, free: 5.824 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.02154/0.8265, allocations: 4.364 MB / 0.957 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.8266, allocations: 54.16 kB / 0.9571 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.296e-05/0.8266, allocations: 91.23 kB / 0.9572 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.55e-05/0.8267, allocations: 31.08 kB / 0.9572 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.699e-05/0.8267, allocations: 80.27 kB / 0.9573 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.8269, allocations: 65.97 kB / 0.9573 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/0.8271, allocations: 91.97 kB / 0.9574 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.37e-05/0.8272, allocations: 320.9 kB / 0.9577 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005045/0.8277, allocations: 309.3 kB / 0.958 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.8282, allocations: 308.2 kB / 0.9583 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.8297, allocations: 0.7731 MB / 0.9591 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.8297, allocations: 3.938 kB / 0.9591 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001594/0.8313, allocations: 0.8046 MB / 0.9599 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.8313, allocations: 9.438 kB / 0.9599 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.8313, allocations: 0 / 0.9599 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/0.8314, allocations: 1.156 kB / 0.9599 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008761/0.8323, allocations: 93.81 kB / 0.96 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.8323, allocations: 0 / 0.96 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005373/0.8328, allocations: 9.219 kB / 0.96 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-05/0.8329, allocations: 32.67 kB / 0.96 GB, free: 1.523 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.0001977/0.8331, allocations: 125.2 kB / 0.9601 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.927e-05/0.8332, allocations: 6.75 kB / 0.9601 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003446/0.8367, allocations: 1.408 MB / 0.9615 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.8367, allocations: 3.281 kB / 0.9615 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.8367, allocations: 1.188 kB / 0.9615 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.8367, allocations: 3.938 kB / 0.9615 GB, free: 0.5547 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003175/0.8399, allocations: 1.81 MB / 0.9633 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.8399, allocations: 0 / 0.9633 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000835/0.8408, allocations: 109.2 kB / 0.9634 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-05/0.8408, allocations: 6.297 kB / 0.9634 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.878e-05/0.8409, allocations: 33.5 kB / 0.9634 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.8409, allocations: 6.188 kB / 0.9634 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.8409, allocations: 0 / 0.9634 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002976/0.8439, allocations: 1.473 MB / 0.9649 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.363e-05/0.844, allocations: 94.16 kB / 0.9649 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.8441, allocations: 14.34 kB / 0.965 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005613/0.8447, allocations: 10.91 kB / 0.965 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.8449, allocations: 50.06 kB / 0.965 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.632e-05/0.845, allocations: 30.36 kB / 0.965 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.478e-05/0.8451, allocations: 80.25 kB / 0.9651 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.91e-07/0.8451, allocations: 0 / 0.9651 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007552/0.8458, allocations: 179.8 kB / 0.9653 GB, free: 14.18 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.0006693/0.8465, allocations: 222.7 kB / 0.9655 GB, free: 14.03 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001622/0.8482, allocations: 0.7379 MB / 0.9662 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.8482, allocations: 4 kB / 0.9662 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000818/0.849, allocations: 454.9 kB / 0.9667 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.8494, allocations: 18.81 kB / 0.9667 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003608/0.853, allocations: 0.856 MB / 0.9675 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.8533, allocations: 0.7182 MB / 0.9682 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001555/0.8549, allocations: 297.2 kB / 0.9685 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005855/0.8555, allocations: 94.62 kB / 0.9686 GB, free: 12.05 MB / 0.7325 GB Notification: Performance of SimCode: time 1.042e-06/0.8555, allocations: 3.938 kB / 0.9686 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of Templates: time 0.02319/0.8787, allocations: 11.22 MB / 0.9796 GB, free: 2.383 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