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.0014/0.0014, allocations: 103.5 kB / 16.36 MB, free: 6.285 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.001536/0.001536, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.43/2.43, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 64.5 kB / 0.8707 GB, free: 1.445 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2715, allocations: 151.6 MB / 1.019 GB, free: 9.855 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001693/0.2732, allocations: 0.6211 MB / 1.019 GB, free: 9.227 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001425/0.2746, allocations: 1.277 MB / 1.021 GB, free: 7.934 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.438e-05/0.2747, allocations: 0 / 1.021 GB, free: 7.934 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.136e-05/0.2747, allocations: 3.938 kB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.226e-05/0.2747, allocations: 3.938 kB / 1.021 GB, free: 7.926 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000353/0.2751, allocations: 83.72 kB / 1.021 GB, free: 7.844 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 5.306e-05/0.2752, allocations: 19.92 kB / 1.021 GB, free: 7.824 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.837e-05/0.2752, allocations: 4 kB / 1.021 GB, free: 7.82 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.046e-05/0.2752, allocations: 11.97 kB / 1.021 GB, free: 7.809 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.469e-05/0.2753, allocations: 15.92 kB / 1.021 GB, free: 7.793 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.2753, allocations: 4 kB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001981/0.2755, allocations: 95.89 kB / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.394e-05/0.2755, allocations: 7.938 kB / 1.021 GB, free: 7.688 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.762e-05/0.2756, allocations: 15.92 kB / 1.021 GB, free: 7.672 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.2757, allocations: 63.92 kB / 1.021 GB, free: 7.609 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2757, allocations: 0 / 1.021 GB, free: 7.609 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2757, allocations: 0 / 1.021 GB, free: 7.609 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.2757, allocations: 0 / 1.021 GB, free: 7.609 MB / 0.795 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.0003907/0.2761, allocations: 355.5 kB / 1.021 GB, free: 7.215 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.2762, allocations: 12.03 kB / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.777e-05/0.2762, allocations: 0.9375 kB / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.2763, allocations: 176.2 kB / 1.021 GB, free: 6.992 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.2763, allocations: 8.375 kB / 1.021 GB, free: 6.984 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.228e-05/0.2764, allocations: 4.375 kB / 1.021 GB, free: 6.98 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.2765, allocations: 50 kB / 1.022 GB, free: 6.926 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2765, allocations: 4 kB / 1.022 GB, free: 6.922 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.2765, allocations: 0 / 1.022 GB, free: 6.922 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.2765, allocations: 0 / 1.022 GB, free: 6.922 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.165e-05/0.2766, allocations: 23.97 kB / 1.022 GB, free: 6.898 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001564/0.2768, allocations: 161.7 kB / 1.022 GB, free: 6.691 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.2769, allocations: 70.5 kB / 1.022 GB, free: 6.613 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.253e-05/0.2769, allocations: 32.83 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004373/0.2774, allocations: 0.5544 MB / 1.022 GB, free: 5.895 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.2774, allocations: 38.5 kB / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.2774, allocations: 0 / 1.022 GB, free: 5.848 MB / 0.795 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.01945/0.2969, allocations: 4.368 MB / 1.027 GB, free: 1.32 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.2969, allocations: 55.31 kB / 1.027 GB, free: 1.254 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.606e-05/0.297, allocations: 89.86 kB / 1.027 GB, free: 1.156 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.965e-05/0.2971, allocations: 37.83 kB / 1.027 GB, free: 1.113 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.95e-05/0.2971, allocations: 84.12 kB / 1.027 GB, free: 1.027 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 9.332e-05/0.2972, allocations: 55.19 kB / 1.027 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002378/0.2974, allocations: 89.67 kB / 1.027 GB, free: 0.8789 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2976, allocations: 330.7 kB / 1.027 GB, free: 0.5469 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/0.2981, allocations: 303.9 kB / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005058/0.2986, allocations: 314.4 kB / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.3, allocations: 0.7701 MB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3, allocations: 0 / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001495/0.3016, allocations: 0.8008 MB / 1.029 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.3016, allocations: 4 kB / 1.029 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.3016, allocations: 4 kB / 1.029 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.3016, allocations: 0 / 1.029 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007885/0.3024, allocations: 99.88 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.3024, allocations: 0 / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004733/0.3029, allocations: 8 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.889e-05/0.303, allocations: 31.97 kB / 1.03 GB, free: 14.22 MB / 0.8106 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.0001868/0.3032, allocations: 126.4 kB / 1.03 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.703e-05/0.3033, allocations: 7.906 kB / 1.03 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003032/0.3063, allocations: 1.396 MB / 1.031 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.3063, allocations: 4 kB / 1.031 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3063, allocations: 4 kB / 1.031 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.3064, allocations: 3.984 kB / 1.031 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002831/0.3092, allocations: 1.814 MB / 1.033 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.3092, allocations: 4 kB / 1.033 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007416/0.31, allocations: 111.8 kB / 1.033 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.31, allocations: 0 / 1.033 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.542e-05/0.3101, allocations: 31.94 kB / 1.033 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.3101, allocations: 0 / 1.033 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3101, allocations: 0 / 1.033 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.3123, allocations: 1.47 MB / 1.034 GB, free: 9.16 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.3124, allocations: 92.86 kB / 1.035 GB, free: 9.051 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.822e-05/0.3125, allocations: 7.938 kB / 1.035 GB, free: 9.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000471/0.313, allocations: 15.98 kB / 1.035 GB, free: 9.027 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.3131, allocations: 39.97 kB / 1.035 GB, free: 8.988 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.557e-05/0.3132, allocations: 32 kB / 1.035 GB, free: 8.957 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.109e-05/0.3132, allocations: 79.34 kB / 1.035 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3132, allocations: 0 / 1.035 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005402/0.3138, allocations: 184 kB / 1.035 GB, free: 8.699 MB / 0.8106 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.0004744/0.3143, allocations: 229.6 kB / 1.035 GB, free: 8.469 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001185/0.3155, allocations: 0.7261 MB / 1.036 GB, free: 7.742 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3155, allocations: 0 / 1.036 GB, free: 7.742 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006218/0.3161, allocations: 455.7 kB / 1.036 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.3164, allocations: 16.16 kB / 1.036 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003123/0.3196, allocations: 0.808 MB / 1.037 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.3198, allocations: 0.7142 MB / 1.038 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000984/0.3208, allocations: 294.5 kB / 1.038 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005451/0.3213, allocations: 95.41 kB / 1.038 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of SimCode: time 1.333e-06/0.3214, allocations: 0 / 1.038 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of Templates: time 0.01508/0.3364, allocations: 11.22 MB / 1.049 GB, free: 10.16 MB / 0.8262 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 -s gbode -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/jenkins1/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