Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001357/0.001357, 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.0014/0.0014, allocations: 192.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.529/1.529, allocations: 222.9 MB / 239.9 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.919/2.919, allocations: 469.8 MB / 0.742 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001978, allocations: 68.75 kB / 0.9081 GB, free: 34.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3348, allocations: 159.2 MB / 1.063 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.002768/0.3376, allocations: 0.6814 MB / 1.064 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00261/0.3402, allocations: 1.277 MB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.196e-05/0.3403, allocations: 3.938 kB / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.834e-05/0.3403, allocations: 3.938 kB / 1.065 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.657e-05/0.3404, allocations: 4 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005331/0.3409, allocations: 59.88 kB / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.205e-05/0.341, allocations: 19.98 kB / 1.065 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.983e-05/0.3411, allocations: 7.984 kB / 1.065 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.226e-05/0.3411, allocations: 8 kB / 1.065 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.244e-05/0.3412, allocations: 15.91 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.3412, allocations: 0 / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003345/0.3416, allocations: 111.8 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.625e-05/0.3416, allocations: 3.938 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.532e-05/0.3417, allocations: 19.94 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001978/0.3419, allocations: 63.91 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3419, allocations: 0 / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3419, allocations: 0 / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.708e-06/0.3419, allocations: 0 / 1.066 GB, free: 12.38 MB / 0.8262 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.0006577/0.3426, allocations: 351.8 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.3426, allocations: 8.031 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.73e-05/0.3427, allocations: 8.844 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.3429, allocations: 168.3 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.3429, allocations: 4.375 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.343, allocations: 4.375 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.3431, allocations: 57.97 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.3432, allocations: 7.938 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.3432, allocations: 4 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3432, allocations: 3.984 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.424e-05/0.3433, allocations: 19.98 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00026/0.3436, allocations: 161.7 kB / 1.066 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.3438, allocations: 66.55 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.099e-05/0.3439, allocations: 16.86 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007126/0.3446, allocations: 0.5622 MB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.456e-05/0.3446, allocations: 46.38 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.3447, allocations: 4 kB / 1.067 GB, free: 10.61 MB / 0.8262 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.02369/0.3684, allocations: 4.362 MB / 1.071 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/0.3684, allocations: 55.41 kB / 1.071 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.436e-05/0.3685, allocations: 97.86 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.941e-05/0.3686, allocations: 25.7 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.704e-05/0.3687, allocations: 84.14 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.3688, allocations: 55.19 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/0.3691, allocations: 97.66 kB / 1.072 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3692, allocations: 318.8 kB / 1.072 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005465/0.3698, allocations: 307.9 kB / 1.072 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005458/0.3703, allocations: 317.8 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001577/0.3719, allocations: 0.7719 MB / 1.073 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.3719, allocations: 0 / 1.073 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001662/0.3736, allocations: 0.802 MB / 1.074 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3736, allocations: 4 kB / 1.074 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.3736, allocations: 0 / 1.074 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.3737, allocations: 4 kB / 1.074 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008437/0.3745, allocations: 87.95 kB / 1.074 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.3745, allocations: 3.984 kB / 1.074 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005125/0.375, allocations: 8 kB / 1.074 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.665e-05/0.3751, allocations: 35.92 kB / 1.074 GB, free: 2.996 MB / 0.8262 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.0002144/0.3754, allocations: 125.7 kB / 1.074 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.682e-05/0.3755, allocations: 7.906 kB / 1.075 GB, free: 2.855 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003537/0.379, allocations: 1.395 MB / 1.076 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.379, allocations: 7.984 kB / 1.076 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.882e-06/0.379, allocations: 0 / 1.076 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.379, allocations: 0 / 1.076 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003159/0.3822, allocations: 1.825 MB / 1.078 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3822, allocations: 0 / 1.078 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008106/0.383, allocations: 111.9 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.3831, allocations: 0 / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.3832, allocations: 39.92 kB / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.3832, allocations: 0 / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3832, allocations: 0 / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002513/0.3857, allocations: 1.461 MB / 1.079 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.724e-05/0.3858, allocations: 101 kB / 1.079 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.567e-05/0.3859, allocations: 7.938 kB / 1.079 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005145/0.3864, allocations: 16 kB / 1.079 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.3866, allocations: 39.95 kB / 1.079 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-05/0.3867, allocations: 35.98 kB / 1.079 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.138e-05/0.3867, allocations: 79.22 kB / 1.079 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3867, allocations: 0 / 1.079 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006084/0.3873, allocations: 176 kB / 1.08 GB, free: 13.47 MB / 0.8419 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.0005331/0.3879, allocations: 231.1 kB / 1.08 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001375/0.3892, allocations: 0.736 MB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3893, allocations: 0 / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007034/0.39, allocations: 455.7 kB / 1.081 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.3903, allocations: 16 kB / 1.081 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.3937, allocations: 0.8561 MB / 1.082 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.3941, allocations: 0.7219 MB / 1.083 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001476/0.3955, allocations: 297.5 kB / 1.083 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000556/0.3961, allocations: 87.41 kB / 1.083 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of SimCode: time 4.11e-07/0.3961, allocations: 0 / 1.083 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of Templates: time 0.01877/0.4149, allocations: 11.22 MB / 1.094 GB, free: 14.86 MB / 0.8575 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches