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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001082/0.001082, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001289/0.001289, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.883/2.883, allocations: 437.7 MB / 0.7117 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004018/0.0004019, allocations: 12 kB / 0.8722 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8037/0.8041, allocations: 153.8 MB / 1.022 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0009527/0.8052, allocations: 345.3 kB / 1.023 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001911/0.8071, allocations: 1.233 MB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.219e-05/0.8072, allocations: 4 kB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.75e-05/0.8072, allocations: 0 / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.256e-05/0.8072, allocations: 0 / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000442/0.8077, allocations: 47.83 kB / 1.024 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.556e-05/0.8078, allocations: 19.98 kB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.957e-05/0.8078, allocations: 7.984 kB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.955e-05/0.8079, allocations: 11.88 kB / 1.024 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.981e-05/0.808, allocations: 19.97 kB / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.808, allocations: 4 kB / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002664/0.8083, allocations: 91.84 kB / 1.024 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.673e-05/0.8083, allocations: 11.97 kB / 1.024 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.919e-05/0.8083, allocations: 29.7 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001142/0.8084, allocations: 43.94 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.8085, allocations: 0 / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.665e-06/0.8085, allocations: 0 / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.8085, allocations: 0 / 1.024 GB, free: 14.16 MB / 0.7794 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.0004787/0.809, allocations: 345.3 kB / 1.025 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.809, allocations: 8.562 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.807e-05/0.8091, allocations: 7.984 kB / 1.025 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.8092, allocations: 159.1 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.8092, allocations: 7.938 kB / 1.025 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.8093, allocations: 4 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/0.8094, allocations: 57.61 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.8094, allocations: 7.844 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.8095, allocations: 8 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.8095, allocations: 4 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.93e-05/0.8095, allocations: 23.97 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002104/0.8098, allocations: 165.6 kB / 1.025 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.8099, allocations: 58.5 kB / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.577e-05/0.8099, allocations: 24.84 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005707/0.8105, allocations: 0.57 MB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.8106, allocations: 34.52 kB / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.8106, allocations: 0 / 1.026 GB, free: 12.4 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.01761/0.8282, allocations: 4.273 MB / 1.03 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.8283, allocations: 55.41 kB / 1.03 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.865e-05/0.8284, allocations: 89.86 kB / 1.03 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.901e-05/0.8285, allocations: 29.7 kB / 1.03 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.147e-05/0.8285, allocations: 80.14 kB / 1.03 GB, free: 7.691 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.8286, allocations: 59.16 kB / 1.03 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-05/0.8287, allocations: 4 kB / 1.03 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.8288, allocations: 322.8 kB / 1.03 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005016/0.8293, allocations: 315.9 kB / 1.031 GB, free: 6.996 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005226/0.8299, allocations: 309.4 kB / 1.031 GB, free: 6.695 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007573/0.8306, allocations: 391.9 kB / 1.031 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.8306, allocations: 0 / 1.031 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001515/0.8322, allocations: 0.8003 MB / 1.032 GB, free: 5.508 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.8322, allocations: 4 kB / 1.032 GB, free: 5.504 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.8322, allocations: 0 / 1.032 GB, free: 5.504 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.8323, allocations: 7.984 kB / 1.032 GB, free: 5.496 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007346/0.833, allocations: 87.95 kB / 1.032 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.833, allocations: 0 / 1.032 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.8334, allocations: 12 kB / 1.032 GB, free: 5.398 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.119e-05/0.8335, allocations: 35.97 kB / 1.032 GB, free: 5.363 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001931/0.8337, allocations: 121.7 kB / 1.032 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.896e-05/0.8338, allocations: 11.91 kB / 1.032 GB, free: 5.223 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003531/0.8373, allocations: 1.399 MB / 1.034 GB, free: 3.816 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.8373, allocations: 4 kB / 1.034 GB, free: 3.812 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.8373, allocations: 0 / 1.034 GB, free: 3.812 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.8374, allocations: 11.92 kB / 1.034 GB, free: 3.801 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003021/0.8404, allocations: 1.806 MB / 1.036 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.8404, allocations: 0 / 1.036 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007307/0.8412, allocations: 107.9 kB / 1.036 GB, free: 1.828 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/0.8412, allocations: 0 / 1.036 GB, free: 1.828 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.474e-05/0.8413, allocations: 32 kB / 1.036 GB, free: 1.797 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.8413, allocations: 7.969 kB / 1.036 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.8413, allocations: 3.984 kB / 1.036 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002505/0.8438, allocations: 1.457 MB / 1.037 GB, free: 316 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.733e-05/0.8439, allocations: 92.98 kB / 1.037 GB, free: 204 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.343e-05/0.844, allocations: 7.984 kB / 1.037 GB, free: 196 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004257/0.8444, allocations: 16 kB / 1.037 GB, free: 180 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.8446, allocations: 43.97 kB / 1.037 GB, free: 136 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.983e-05/0.8446, allocations: 35.95 kB / 1.037 GB, free: 100 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.596e-05/0.8447, allocations: 75.28 kB / 1.037 GB, free: 24 kB / 0.7794 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8447, allocations: 0 / 1.037 GB, free: 24 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000739/0.8455, allocations: 180 kB / 1.038 GB, free: 15.84 MB / 0.795 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006397/0.8461, allocations: 227 kB / 1.038 GB, free: 15.62 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001294/0.8474, allocations: 0.7228 MB / 1.039 GB, free: 14.89 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.8474, allocations: 8.094 kB / 1.039 GB, free: 14.89 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.8481, allocations: 451.7 kB / 1.039 GB, free: 14.45 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003425/0.8485, allocations: 16 kB / 1.039 GB, free: 14.43 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002916/0.8514, allocations: 0.8542 MB / 1.04 GB, free: 13.55 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.8517, allocations: 0.7184 MB / 1.041 GB, free: 12.8 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00142/0.8532, allocations: 297.5 kB / 1.041 GB, free: 12.52 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005254/0.8537, allocations: 91.41 kB / 1.041 GB, free: 12.43 MB / 0.795 GB Notification: Performance of SimCode: time 1.133e-06/0.8537, allocations: 0 / 1.041 GB, free: 12.43 MB / 0.795 GB Notification: Performance of Templates: time 0.0185/0.8722, allocations: 10.4 MB / 1.051 GB, free: 2.09 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=480 -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