Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001775/0.001774, 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.002032/0.002033, allocations: 192.8 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.447/1.447, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.789/2.789, allocations: 437 MB / 0.7101 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001976, allocations: 59.91 kB / 0.8688 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.611/0.613, allocations: 151.6 MB / 1.017 GB, free: 2.711 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001828/0.6149, allocations: 0.6839 MB / 1.017 GB, free: 2.023 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001685/0.6166, allocations: 1.264 MB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.193e-05/0.6166, allocations: 3.938 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.579e-05/0.6166, allocations: 4 kB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.252e-05/0.6167, allocations: 3.938 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.617, allocations: 59.88 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.329e-05/0.6171, allocations: 19.98 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.6171, allocations: 4 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.74e-05/0.6172, allocations: 19.91 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.072e-05/0.6172, allocations: 15.92 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.6173, allocations: 4 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002221/0.6175, allocations: 99.83 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.725e-05/0.6175, allocations: 11.98 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.34e-05/0.6175, allocations: 11.88 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.6177, allocations: 67.91 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.6177, allocations: 0 / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6177, allocations: 0 / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.057e-05/0.6177, allocations: 0 / 1.019 GB, free: 432 kB / 0.7637 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.0004819/0.6182, allocations: 353.4 kB / 1.019 GB, free: 32 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.6183, allocations: 8.031 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.406e-05/0.6183, allocations: 4.938 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.6185, allocations: 168.4 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.6185, allocations: 8.375 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.6185, allocations: 4.281 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.6187, allocations: 61.92 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.6187, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.6187, allocations: 4 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.6187, allocations: 0 / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.812e-05/0.6188, allocations: 23.97 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002067/0.619, allocations: 169.6 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.6191, allocations: 58.56 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.663e-05/0.6192, allocations: 28.84 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005562/0.6197, allocations: 0.5505 MB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.6198, allocations: 50.42 kB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.6198, allocations: 0 / 1.02 GB, free: 14.66 MB / 0.7794 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.02097/0.6408, allocations: 4.369 MB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.6408, allocations: 55.41 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.329e-05/0.6409, allocations: 97.84 kB / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 8.461e-05/0.641, allocations: 29.7 kB / 1.025 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.491e-05/0.641, allocations: 84.14 kB / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.6412, allocations: 55.11 kB / 1.025 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002773/0.6415, allocations: 89.67 kB / 1.025 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.6416, allocations: 322.8 kB / 1.025 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.6422, allocations: 307.9 kB / 1.026 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005516/0.6427, allocations: 313.6 kB / 1.026 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.6444, allocations: 0.7752 MB / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.6444, allocations: 0 / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001677/0.6461, allocations: 0.7993 MB / 1.028 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.6461, allocations: 4 kB / 1.028 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.6461, allocations: 0 / 1.028 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.6461, allocations: 4 kB / 1.028 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008171/0.6469, allocations: 91.94 kB / 1.028 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.647, allocations: 0 / 1.028 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000523/0.6475, allocations: 8 kB / 1.028 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.746e-05/0.6476, allocations: 43.97 kB / 1.028 GB, free: 7.031 MB / 0.7794 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.0002166/0.6478, allocations: 125.7 kB / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.899e-05/0.6479, allocations: 7.906 kB / 1.028 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003549/0.6515, allocations: 1.391 MB / 1.029 GB, free: 5.496 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.6515, allocations: 4 kB / 1.029 GB, free: 5.492 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.6515, allocations: 0 / 1.029 GB, free: 5.492 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.6515, allocations: 3.984 kB / 1.029 GB, free: 5.488 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003171/0.6547, allocations: 1.817 MB / 1.031 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.6547, allocations: 0 / 1.031 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008149/0.6555, allocations: 111.9 kB / 1.031 GB, free: 3.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.6555, allocations: 0 / 1.031 GB, free: 3.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.498e-05/0.6556, allocations: 31.94 kB / 1.031 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.6556, allocations: 7.922 kB / 1.031 GB, free: 3.461 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.6556, allocations: 3.984 kB / 1.031 GB, free: 3.457 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002638/0.6583, allocations: 1.465 MB / 1.033 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.002e-05/0.6584, allocations: 92.95 kB / 1.033 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.6585, allocations: 15.92 kB / 1.033 GB, free: 1.848 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005199/0.659, allocations: 12 kB / 1.033 GB, free: 1.836 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/0.6592, allocations: 43.91 kB / 1.033 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-05/0.6593, allocations: 28 kB / 1.033 GB, free: 1.766 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.236e-05/0.6593, allocations: 75.28 kB / 1.033 GB, free: 1.691 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.01e-07/0.6593, allocations: 0 / 1.033 GB, free: 1.691 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0006294/0.66, allocations: 184.1 kB / 1.033 GB, free: 1.512 MB / 0.7794 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.0005649/0.6605, allocations: 227.5 kB / 1.033 GB, free: 1.281 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001437/0.662, allocations: 0.7463 MB / 1.034 GB, free: 0.5352 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.662, allocations: 0 / 1.034 GB, free: 0.5352 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007353/0.6627, allocations: 455.7 kB / 1.034 GB, free: 92 kB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.6631, allocations: 21.42 kB / 1.034 GB, free: 72 kB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003526/0.6666, allocations: 0.8589 MB / 1.035 GB, free: 15.18 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.667, allocations: 0.7142 MB / 1.036 GB, free: 14.44 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001515/0.6685, allocations: 298.3 kB / 1.036 GB, free: 14.15 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005886/0.6691, allocations: 91.41 kB / 1.036 GB, free: 14.06 MB / 0.795 GB Notification: Performance of SimCode: time 5.51e-07/0.6691, allocations: 0 / 1.036 GB, free: 14.06 MB / 0.795 GB Notification: Performance of Templates: time 0.01892/0.688, allocations: 11.22 MB / 1.047 GB, free: 2.895 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches