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.009406/0.009406, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001913/0.001913, allocations: 197 kB / 16.67 MB, free: 5.926 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.164 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.388/2.388, allocations: 390.2 MB / 0.6648 GB, free: 152 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 73.47 kB / 0.9509 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.321, allocations: 140.4 MB / 1.088 GB, free: 1.547 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001692/0.3227, allocations: 0.6037 MB / 1.089 GB, free: 0.9453 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001551/0.3243, allocations: 1.289 MB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.751e-05/0.3243, allocations: 3.938 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.748e-05/0.3244, allocations: 0 / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.181e-05/0.3244, allocations: 0 / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003966/0.3248, allocations: 79.72 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.261e-05/0.3249, allocations: 15.98 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.691e-05/0.3249, allocations: 11.92 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.128e-05/0.325, allocations: 12 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.018e-05/0.325, allocations: 15.92 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.481e-05/0.3251, allocations: 4 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.3253, allocations: 99.88 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.568e-05/0.3253, allocations: 7.938 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.695e-05/0.3253, allocations: 11.92 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.3255, allocations: 67.91 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3255, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.158e-06/0.3255, allocations: 0 / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.189e-06/0.3255, allocations: 7.875 kB / 1.09 GB, free: 15.31 MB / 0.8575 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.0004526/0.326, allocations: 351.5 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.326, allocations: 12.03 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.886e-05/0.3261, allocations: 8.828 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.3262, allocations: 160.4 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.3262, allocations: 8.375 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.3262, allocations: 4.375 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.3264, allocations: 57.92 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.3264, allocations: 4 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.3264, allocations: 4 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.3264, allocations: 0 / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.988e-05/0.3265, allocations: 19.98 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001802/0.3267, allocations: 165.7 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.3268, allocations: 66.48 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.206e-05/0.3268, allocations: 24.86 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004871/0.3273, allocations: 0.5622 MB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.3274, allocations: 34.5 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.3274, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 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.01837/0.3458, allocations: 4.381 MB / 1.096 GB, free: 9.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.3459, allocations: 51.41 kB / 1.096 GB, free: 8.957 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.524e-05/0.346, allocations: 93.86 kB / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.374e-05/0.346, allocations: 33.64 kB / 1.096 GB, free: 8.816 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.491e-05/0.3461, allocations: 80.14 kB / 1.096 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.3462, allocations: 55.2 kB / 1.096 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002411/0.3465, allocations: 93.78 kB / 1.096 GB, free: 8.582 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.3466, allocations: 322.8 kB / 1.097 GB, free: 8.258 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004948/0.3471, allocations: 307.9 kB / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005063/0.3476, allocations: 311.8 kB / 1.097 GB, free: 7.652 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.349, allocations: 0.7753 MB / 1.098 GB, free: 6.875 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.349, allocations: 0 / 1.098 GB, free: 6.875 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001486/0.3505, allocations: 0.7961 MB / 1.099 GB, free: 6.074 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.3506, allocations: 8 kB / 1.099 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3506, allocations: 0 / 1.099 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.3506, allocations: 0 / 1.099 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007941/0.3514, allocations: 91.95 kB / 1.099 GB, free: 5.977 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.3514, allocations: 11.92 kB / 1.099 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004874/0.3519, allocations: 12 kB / 1.099 GB, free: 5.953 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.304e-05/0.352, allocations: 31.98 kB / 1.099 GB, free: 5.922 MB / 0.8575 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.0001861/0.3522, allocations: 117.8 kB / 1.099 GB, free: 5.797 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.3e-05/0.3523, allocations: 7.906 kB / 1.099 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002958/0.3552, allocations: 1.407 MB / 1.1 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.3553, allocations: 4 kB / 1.1 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.3553, allocations: 0 / 1.1 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.912e-06/0.3553, allocations: 3.984 kB / 1.1 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002692/0.358, allocations: 1.814 MB / 1.102 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.358, allocations: 4.031 kB / 1.102 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007315/0.3587, allocations: 103.9 kB / 1.102 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.3588, allocations: 7.984 kB / 1.102 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.881e-05/0.3588, allocations: 31.94 kB / 1.102 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.3588, allocations: 4 kB / 1.102 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3588, allocations: 0 / 1.102 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.361, allocations: 1.463 MB / 1.104 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.855e-05/0.3611, allocations: 93.02 kB / 1.104 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.706e-05/0.3612, allocations: 15.94 kB / 1.104 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004695/0.3617, allocations: 8 kB / 1.104 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.3618, allocations: 43.97 kB / 1.104 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.057e-05/0.3619, allocations: 27.98 kB / 1.104 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.944e-05/0.3619, allocations: 79.28 kB / 1.104 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.233e-06/0.3619, allocations: 3.938 kB / 1.104 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000566/0.3625, allocations: 175.9 kB / 1.104 GB, free: 412 kB / 0.8575 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.0004874/0.363, allocations: 235.1 kB / 1.104 GB, free: 168 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001159/0.3642, allocations: 0.7223 MB / 1.105 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3642, allocations: 4 kB / 1.105 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006021/0.3648, allocations: 451.7 kB / 1.105 GB, free: 15 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.3651, allocations: 16 kB / 1.105 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003162/0.3683, allocations: 0.8014 MB / 1.106 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.3685, allocations: 0.7182 MB / 1.107 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0009233/0.3695, allocations: 297.5 kB / 1.107 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000506/0.37, allocations: 87.42 kB / 1.107 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of SimCode: time 3.2e-07/0.37, allocations: 0 / 1.107 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of Templates: time 0.01501/0.385, allocations: 11.55 MB / 1.119 GB, free: 1.531 MB / 0.8731 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