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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001026/0.001026, allocations: 104.4 kB / 16.35 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.0009703/0.0009704, allocations: 192.7 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.197/1.197, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.02/2.02, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 65.73 kB / 0.814 GB, free: 32.79 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2228, allocations: 140.4 MB / 0.9511 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001538/0.2244, allocations: 0.6131 MB / 0.9517 GB, free: 7.473 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001352/0.2258, allocations: 1.285 MB / 0.953 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.999e-05/0.2258, allocations: 0 / 0.953 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.383e-05/0.2258, allocations: 3.938 kB / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 1.519e-05/0.2259, allocations: 0 / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000327/0.2262, allocations: 75.72 kB / 0.9531 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 4.766e-05/0.2262, allocations: 23.92 kB / 0.9531 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.659e-05/0.2263, allocations: 11.97 kB / 0.9531 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.671e-05/0.2263, allocations: 8 kB / 0.9531 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.056e-05/0.2264, allocations: 19.91 kB / 0.9531 GB, free: 6.031 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.091e-05/0.2264, allocations: 4 kB / 0.9531 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.2266, allocations: 95.84 kB / 0.9532 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.471e-05/0.2266, allocations: 11.97 kB / 0.9532 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.04e-05/0.2266, allocations: 11.94 kB / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.2268, allocations: 67.84 kB / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2268, allocations: 0 / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2268, allocations: 0 / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.335e-05/0.2268, allocations: 0 / 0.9533 GB, free: 5.844 MB / 0.7325 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.0003776/0.2272, allocations: 352.5 kB / 0.9536 GB, free: 5.453 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/0.2272, allocations: 8.031 kB / 0.9536 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.2272, allocations: 8.938 kB / 0.9537 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.196e-05/0.2273, allocations: 164.3 kB / 0.9538 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.2274, allocations: 4.375 kB / 0.9538 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.2274, allocations: 4.281 kB / 0.9538 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.2275, allocations: 57.98 kB / 0.9539 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.2275, allocations: 3.938 kB / 0.9539 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.2275, allocations: 8 kB / 0.9539 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.2275, allocations: 7.875 kB / 0.9539 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.838e-05/0.2276, allocations: 23.97 kB / 0.9539 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00015/0.2278, allocations: 161.7 kB / 0.9541 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 9.761e-05/0.2279, allocations: 62.56 kB / 0.9541 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.878e-05/0.2279, allocations: 28.84 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004487/0.2284, allocations: 0.5583 MB / 0.9547 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.2284, allocations: 42.44 kB / 0.9547 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.2284, allocations: 0 / 0.9547 GB, free: 4.078 MB / 0.7325 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.01766/0.2461, allocations: 4.354 MB / 0.959 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.2461, allocations: 59.39 kB / 0.959 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.112e-05/0.2462, allocations: 89.86 kB / 0.9591 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.236e-05/0.2463, allocations: 33.7 kB / 0.9592 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 2.432e-05/0.2463, allocations: 80.14 kB / 0.9592 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 9.316e-05/0.2464, allocations: 59.09 kB / 0.9593 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002315/0.2466, allocations: 93.8 kB / 0.9594 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.2468, allocations: 322.8 kB / 0.9597 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004575/0.2472, allocations: 307.9 kB / 0.96 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000461/0.2477, allocations: 319.8 kB / 0.9603 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/0.2491, allocations: 0.7686 MB / 0.961 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.2491, allocations: 0 / 0.961 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001413/0.2505, allocations: 0.802 MB / 0.9618 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2505, allocations: 7.938 kB / 0.9618 GB, free: 12.6 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2505, allocations: 0 / 0.9618 GB, free: 12.6 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.2505, allocations: 8 kB / 0.9618 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007257/0.2513, allocations: 87.95 kB / 0.9619 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.2513, allocations: 0 / 0.9619 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004449/0.2517, allocations: 8 kB / 0.9619 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-05/0.2518, allocations: 35.97 kB / 0.962 GB, free: 12.46 MB / 0.7481 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.0001754/0.252, allocations: 127.7 kB / 0.9621 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.76e-05/0.2521, allocations: 7.906 kB / 0.9621 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002692/0.2548, allocations: 1.396 MB / 0.9635 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.2548, allocations: 4 kB / 0.9635 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2548, allocations: 3.984 kB / 0.9635 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2548, allocations: 3.984 kB / 0.9635 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002595/0.2574, allocations: 1.81 MB / 0.9652 GB, free: 9.035 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2574, allocations: 4.031 kB / 0.9652 GB, free: 9.031 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007018/0.2581, allocations: 111.9 kB / 0.9654 GB, free: 8.922 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.2582, allocations: 0 / 0.9654 GB, free: 8.922 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/0.2582, allocations: 35.92 kB / 0.9654 GB, free: 8.887 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2582, allocations: 0 / 0.9654 GB, free: 8.887 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2582, allocations: 0 / 0.9654 GB, free: 8.887 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.2603, allocations: 1.47 MB / 0.9668 GB, free: 7.398 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.593e-05/0.2604, allocations: 101 kB / 0.9669 GB, free: 7.281 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.914e-05/0.2605, allocations: 7.938 kB / 0.9669 GB, free: 7.273 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000428/0.2609, allocations: 12 kB / 0.9669 GB, free: 7.262 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.2611, allocations: 39.97 kB / 0.967 GB, free: 7.223 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.328e-05/0.2611, allocations: 43.92 kB / 0.967 GB, free: 7.18 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 3.419e-05/0.2612, allocations: 75.28 kB / 0.9671 GB, free: 7.105 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2612, allocations: 0 / 0.9671 GB, free: 7.105 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004936/0.2617, allocations: 176 kB / 0.9673 GB, free: 6.934 MB / 0.7481 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.0004476/0.2621, allocations: 231.2 kB / 0.9675 GB, free: 6.695 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001084/0.2632, allocations: 0.7207 MB / 0.9682 GB, free: 5.977 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2632, allocations: 0 / 0.9682 GB, free: 5.977 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0005844/0.2638, allocations: 459.6 kB / 0.9686 GB, free: 5.527 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.2641, allocations: 12 kB / 0.9686 GB, free: 5.516 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.267, allocations: 0.7935 MB / 0.9694 GB, free: 4.695 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.2672, allocations: 0.7182 MB / 0.9701 GB, free: 3.949 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0009126/0.2682, allocations: 301.4 kB / 0.9704 GB, free: 3.652 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004963/0.2687, allocations: 95.41 kB / 0.9705 GB, free: 3.559 MB / 0.7481 GB Notification: Performance of SimCode: time 2.1e-07/0.2687, allocations: 0 / 0.9705 GB, free: 3.559 MB / 0.7481 GB Notification: Performance of Templates: time 0.01384/0.2825, allocations: 11.23 MB / 0.9814 GB, free: 8.391 MB / 0.7637 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 -s cvode -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/jenkins1/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