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.001593/0.001593, allocations: 98.66 kB / 16.35 MB, free: 5.824 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.001783/0.001783, allocations: 196.7 kB / 17.3 MB, free: 5.48 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.15 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.215/2.215, allocations: 390.3 MB / 0.6655 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 66.92 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2474, allocations: 140.4 MB / 0.9511 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001742/0.2492, allocations: 0.6132 MB / 0.9517 GB, free: 7.406 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001514/0.2507, allocations: 1.289 MB / 0.953 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.043e-05/0.2508, allocations: 4 kB / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.079e-05/0.2508, allocations: 0 / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 2.158e-05/0.2508, allocations: 0 / 0.953 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003666/0.2512, allocations: 75.73 kB / 0.9531 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.651e-05/0.2513, allocations: 31.84 kB / 0.9531 GB, free: 5.992 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 3.516e-05/0.2513, allocations: 0 / 0.9531 GB, free: 5.992 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 2.263e-05/0.2513, allocations: 11.98 kB / 0.9531 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.906e-05/0.2514, allocations: 15.92 kB / 0.9531 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.115e-05/0.2514, allocations: 0 / 0.9531 GB, free: 5.965 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.2516, allocations: 99.89 kB / 0.9532 GB, free: 5.867 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.528e-05/0.2517, allocations: 11.98 kB / 0.9532 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.713e-05/0.2517, allocations: 15.92 kB / 0.9532 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.2518, allocations: 59.86 kB / 0.9533 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.2518, allocations: 7.984 kB / 0.9533 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2518, allocations: 0 / 0.9533 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.757e-06/0.2519, allocations: 0 / 0.9533 GB, free: 5.773 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.0004001/0.2523, allocations: 347.5 kB / 0.9536 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.2523, allocations: 8.031 kB / 0.9536 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.426e-05/0.2523, allocations: 8.938 kB / 0.9537 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.2525, allocations: 168.3 kB / 0.9538 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.2525, allocations: 4.312 kB / 0.9538 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.057e-05/0.2525, allocations: 8.281 kB / 0.9538 GB, free: 5.156 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001211/0.2526, allocations: 54 kB / 0.9539 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.2527, allocations: 0 / 0.9539 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.2527, allocations: 3.984 kB / 0.9539 GB, free: 5.094 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.2527, allocations: 7.938 kB / 0.9539 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.561e-05/0.2528, allocations: 19.98 kB / 0.9539 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001757/0.2529, allocations: 165.7 kB / 0.9541 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001174/0.2531, allocations: 58.58 kB / 0.9541 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.296e-05/0.2531, allocations: 29 kB / 0.9542 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004777/0.2536, allocations: 0.5583 MB / 0.9547 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.2536, allocations: 50.48 kB / 0.9547 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/0.2537, allocations: 0 / 0.9547 GB, free: 4.012 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.01962/0.2733, allocations: 4.355 MB / 0.959 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.035e-05/0.2733, allocations: 55.41 kB / 0.9591 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.991e-05/0.2734, allocations: 97.84 kB / 0.9591 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.11e-05/0.2735, allocations: 29.7 kB / 0.9592 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 3.15e-05/0.2735, allocations: 80.14 kB / 0.9592 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.2737, allocations: 59.11 kB / 0.9593 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002519/0.2739, allocations: 89.67 kB / 0.9594 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.2741, allocations: 322.8 kB / 0.9597 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000528/0.2746, allocations: 308 kB / 0.96 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004921/0.2751, allocations: 322.2 kB / 0.9603 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001486/0.2766, allocations: 0.7739 MB / 0.9611 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2766, allocations: 0 / 0.9611 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001534/0.2781, allocations: 0.7969 MB / 0.9618 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.2782, allocations: 4 kB / 0.9618 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.2782, allocations: 0 / 0.9618 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.2782, allocations: 3.984 kB / 0.9618 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000756/0.279, allocations: 91.89 kB / 0.9619 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.279, allocations: 4 kB / 0.9619 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.2795, allocations: 8 kB / 0.9619 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-05/0.2796, allocations: 39.97 kB / 0.962 GB, free: 12.39 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.0001925/0.2798, allocations: 121.8 kB / 0.9621 GB, free: 12.26 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.392e-05/0.2798, allocations: 7.906 kB / 0.9621 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003043/0.2829, allocations: 1.4 MB / 0.9635 GB, free: 10.85 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.2829, allocations: 7.938 kB / 0.9635 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2829, allocations: 0 / 0.9635 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.2829, allocations: 3.984 kB / 0.9635 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002876/0.2858, allocations: 1.806 MB / 0.9652 GB, free: 8.969 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.2858, allocations: 0 / 0.9652 GB, free: 8.969 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007495/0.2866, allocations: 107.9 kB / 0.9653 GB, free: 8.863 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.393e-06/0.2866, allocations: 4 kB / 0.9654 GB, free: 8.859 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.683e-05/0.2867, allocations: 35.95 kB / 0.9654 GB, free: 8.824 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.2867, allocations: 4 kB / 0.9654 GB, free: 8.82 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2867, allocations: 0 / 0.9654 GB, free: 8.82 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.289, allocations: 1.47 MB / 0.9668 GB, free: 7.332 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.45e-05/0.289, allocations: 96.88 kB / 0.9669 GB, free: 7.219 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.764e-05/0.2891, allocations: 11.94 kB / 0.9669 GB, free: 7.207 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004658/0.2896, allocations: 8 kB / 0.9669 GB, free: 7.199 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.2897, allocations: 48.03 kB / 0.967 GB, free: 7.152 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.628e-05/0.2898, allocations: 32 kB / 0.967 GB, free: 7.121 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 3.744e-05/0.2899, allocations: 75.28 kB / 0.9671 GB, free: 7.047 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2899, allocations: 0 / 0.9671 GB, free: 7.047 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005333/0.2904, allocations: 180 kB / 0.9673 GB, free: 6.871 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.0004769/0.2909, allocations: 227.1 kB / 0.9675 GB, free: 6.637 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.00118/0.2921, allocations: 0.7223 MB / 0.9682 GB, free: 5.914 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2921, allocations: 4.094 kB / 0.9682 GB, free: 5.91 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0006462/0.2928, allocations: 455.7 kB / 0.9686 GB, free: 5.465 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003104/0.2931, allocations: 13.89 kB / 0.9686 GB, free: 5.453 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003164/0.2962, allocations: 0.8006 MB / 0.9694 GB, free: 4.629 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.2965, allocations: 0.7182 MB / 0.9701 GB, free: 3.883 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0009896/0.2975, allocations: 297.5 kB / 0.9704 GB, free: 3.59 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005422/0.2981, allocations: 91.41 kB / 0.9705 GB, free: 3.5 MB / 0.7481 GB Notification: Performance of SimCode: time 2.9e-07/0.2981, allocations: 4 kB / 0.9705 GB, free: 3.496 MB / 0.7481 GB Notification: Performance of Templates: time 0.01639/0.3145, allocations: 11.22 MB / 0.9814 GB, free: 8.332 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 gbode -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