Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.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.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001707/0.001707, allocations: 114.2 kB / 16.37 MB, free: 6.012 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.001828/0.001828, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.38/1.38, allocations: 222.9 MB / 241 MB, free: 15.19 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.221/2.221, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 66.58 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2674, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003183/0.2706, allocations: 1.769 MB / 0.9528 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001162/0.2718, allocations: 0.6631 MB / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.343e-05/0.2719, allocations: 0 / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.464e-05/0.272, allocations: 15.86 kB / 0.9535 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.283e-05/0.272, allocations: 15.8 kB / 0.9535 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005612/0.2726, allocations: 171.5 kB / 0.9537 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.2728, allocations: 115.7 kB / 0.9538 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.2729, allocations: 64.92 kB / 0.9539 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.2731, allocations: 55.84 kB / 0.9539 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.022e-05/0.2732, allocations: 51.75 kB / 0.954 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.2732, allocations: 12 kB / 0.954 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.2733, allocations: 43.97 kB / 0.954 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.748e-05/0.2734, allocations: 31.89 kB / 0.954 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.168e-05/0.2734, allocations: 63.66 kB / 0.9541 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.2737, allocations: 139.6 kB / 0.9542 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2737, allocations: 0 / 0.9542 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.087e-06/0.2737, allocations: 0 / 0.9542 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.2737, allocations: 7.875 kB / 0.9543 GB, free: 4.836 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005514/0.2742, allocations: 431.1 kB / 0.9547 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.2743, allocations: 12.03 kB / 0.9547 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007849/0.2751, allocations: 108.6 kB / 0.9548 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.2752, allocations: 193.1 kB / 0.955 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.985e-05/0.2753, allocations: 63.97 kB / 0.955 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.055e-05/0.2754, allocations: 8.375 kB / 0.955 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004816/0.2759, allocations: 177.5 kB / 0.9552 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.2759, allocations: 7.938 kB / 0.9552 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.2759, allocations: 4 kB / 0.9552 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.2759, allocations: 0 / 0.9552 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005441/0.2765, allocations: 155.8 kB / 0.9554 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.2775, allocations: 474 kB / 0.9558 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009829/0.2785, allocations: 222.3 kB / 0.956 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.2788, allocations: 80.91 kB / 0.9561 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.2789, allocations: 7.984 kB / 0.9561 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.2789, allocations: 30.56 kB / 0.9561 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.2789, allocations: 0 / 0.9561 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0009618/0.2799, allocations: 265.4 kB / 0.9564 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.2799, allocations: 55.41 kB / 0.9564 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.2801, allocations: 135.7 kB / 0.9566 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.2801, allocations: 29.7 kB / 0.9566 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.029e-05/0.2802, allocations: 108.2 kB / 0.9567 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.2802, allocations: 27.64 kB / 0.9567 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.118e-05/0.2803, allocations: 25.7 kB / 0.9568 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.2804, allocations: 314.8 kB / 0.9571 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.2807, allocations: 79.91 kB / 0.9571 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.281, allocations: 98.44 kB / 0.9572 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000518/0.2815, allocations: 166.4 kB / 0.9574 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2815, allocations: 0 / 0.9574 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006059/0.2821, allocations: 197.4 kB / 0.9576 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2821, allocations: 8 kB / 0.9576 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.2822, allocations: 4.375 kB / 0.9576 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.2822, allocations: 7.922 kB / 0.9576 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000258/0.2824, allocations: 39.94 kB / 0.9576 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.2825, allocations: 7.938 kB / 0.9576 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.2826, allocations: 27.88 kB / 0.9577 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.2827, allocations: 4 kB / 0.9577 GB, free: 1.078 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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 9.327e-05/0.2828, allocations: 123.8 kB / 0.9578 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.2828, allocations: 7.906 kB / 0.9578 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006279/0.2834, allocations: 202.2 kB / 0.958 GB, free: 0.7383 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.2834, allocations: 8 kB / 0.958 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2835, allocations: 0 / 0.958 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.2835, allocations: 0 / 0.958 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002363/0.2837, allocations: 242.2 kB / 0.9582 GB, free: 456 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2837, allocations: 7.922 kB / 0.9582 GB, free: 448 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000207/0.2839, allocations: 31.95 kB / 0.9583 GB, free: 416 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2839, allocations: 0 / 0.9583 GB, free: 416 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.284, allocations: 3.938 kB / 0.9583 GB, free: 412 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.284, allocations: 3.938 kB / 0.9583 GB, free: 408 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.284, allocations: 4 kB / 0.9583 GB, free: 404 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005967/0.2846, allocations: 279.3 kB / 0.9585 GB, free: 108 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.2846, allocations: 85.02 kB / 0.9586 GB, free: 4 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.858e-05/0.2847, allocations: 12.02 kB / 0.9586 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/0.2849, allocations: 27.95 kB / 0.9587 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.285, allocations: 7.984 kB / 0.9587 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.285, allocations: 7.984 kB / 0.9587 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 6.116e-05/0.2851, allocations: 105.3 kB / 0.9588 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2851, allocations: 3.938 kB / 0.9588 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002593/0.2854, allocations: 27.91 kB / 0.9588 GB, free: 15.81 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0001122/0.2855, allocations: 99.25 kB / 0.9589 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005897/0.2861, allocations: 163.8 kB / 0.9591 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2861, allocations: 0 / 0.9591 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002766/0.2864, allocations: 92.22 kB / 0.9591 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.2867, allocations: 10.47 kB / 0.9592 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006031/0.2873, allocations: 251.5 kB / 0.9594 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.2876, allocations: 0.7041 MB / 0.9601 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.76e-05/0.2877, allocations: 16 kB / 0.9601 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.476e-05/0.2877, allocations: 15.42 kB / 0.9601 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of SimCode: time 2.41e-07/0.2877, allocations: 0 / 0.9601 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of Templates: time 0.003557/0.2913, allocations: 1.464 MB / 0.9615 GB, free: 12.95 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches