Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002331/0.002331, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002817/0.002817, allocations: 177.2 kB / 22.76 MB, free: 1.66 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.559/1.559, allocations: 177.1 MB / 203.1 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.336/3.336, allocations: 429.5 MB / 0.6729 GB, free: 4.012 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 0.8775 GB, free: 6.625 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.883e-05/3.03e-05, allocations: 3.188 kB / 0.8775 GB, free: 6.621 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.00463/0.00466, allocations: 1.795 MB / 0.8792 GB, free: 4.84 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001916/0.006576, allocations: 0.6955 MB / 0.8799 GB, free: 4.141 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.551e-05/0.006661, allocations: 4.5 kB / 0.8799 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 5.317e-05/0.006714, allocations: 11.86 kB / 0.8799 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.006826, allocations: 21.58 kB / 0.8799 GB, free: 4.105 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.000796/0.007622, allocations: 182.6 kB / 0.8801 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002785/0.007901, allocations: 135.5 kB / 0.8802 GB, free: 3.797 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.00808, allocations: 33.61 kB / 0.8803 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002837/0.008364, allocations: 87.8 kB / 0.8803 GB, free: 3.676 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.008479, allocations: 38.53 kB / 0.8804 GB, free: 3.641 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.091e-05/0.008519, allocations: 8 kB / 0.8804 GB, free: 3.633 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001671/0.008687, allocations: 47.97 kB / 0.8804 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.971e-05/0.008746, allocations: 31.89 kB / 0.8805 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 8.077e-05/0.008827, allocations: 39.91 kB / 0.8805 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003864/0.009213, allocations: 175.4 kB / 0.8807 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.009218, allocations: 1.875 kB / 0.8807 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.202e-06/0.00922, allocations: 0 / 0.8807 GB, free: 3.344 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.009224, allocations: 0 / 0.8807 GB, free: 3.344 MB / 0.8386 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.0008889/0.01011, allocations: 467.6 kB / 0.8811 GB, free: 2.852 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.01016, allocations: 15.97 kB / 0.8811 GB, free: 2.836 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/0.01138, allocations: 112.7 kB / 0.8812 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.01173, allocations: 146 kB / 0.8814 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.0119, allocations: 119.3 kB / 0.8815 GB, free: 2.418 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.069e-05/0.01194, allocations: 8.375 kB / 0.8815 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006981/0.01264, allocations: 212 kB / 0.8817 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.01265, allocations: 0 / 0.8817 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.01268, allocations: 3.938 kB / 0.8817 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.01269, allocations: 4 kB / 0.8817 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006918/0.01338, allocations: 131.9 kB / 0.8818 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/0.01485, allocations: 461.1 kB / 0.8823 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.01599, allocations: 182.9 kB / 0.8825 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000339/0.01633, allocations: 71.77 kB / 0.8825 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.01636, allocations: 4 kB / 0.8825 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/0.01641, allocations: 37.39 kB / 0.8826 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.452e-06/0.01641, allocations: 0 / 0.8826 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.001219/0.01763, allocations: 233.4 kB / 0.8828 GB, free: 1.016 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.01769, allocations: 55.34 kB / 0.8828 GB, free: 0.9492 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002587/0.01795, allocations: 216.1 kB / 0.883 GB, free: 0.7227 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/0.01799, allocations: 25.7 kB / 0.8831 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.01813, allocations: 159 kB / 0.8832 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.905e-05/0.01817, allocations: 23.8 kB / 0.8832 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.392e-05/0.01827, allocations: 31.36 kB / 0.8833 GB, free: 480 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0003506/0.01862, allocations: 0.5001 MB / 0.8838 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003242/0.01894, allocations: 59.95 kB / 0.8838 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.01929, allocations: 95.02 kB / 0.8839 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006912/0.01998, allocations: 142.9 kB / 0.884 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.01999, allocations: 0 / 0.884 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0008639/0.02085, allocations: 189.5 kB / 0.8842 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.02087, allocations: 7.984 kB / 0.8842 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.02088, allocations: 3.984 kB / 0.8842 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.02091, allocations: 7.938 kB / 0.8842 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003196/0.02123, allocations: 28.22 kB / 0.8843 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.02124, allocations: 7.938 kB / 0.8843 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.02147, allocations: 20.05 kB / 0.8843 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/0.02149, allocations: 4 kB / 0.8843 GB, free: 15.37 MB / 0.8542 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 0.0001887/0.02168, allocations: 164.6 kB / 0.8845 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.662e-05/0.02177, allocations: 11.94 kB / 0.8845 GB, free: 15.19 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008406/0.02261, allocations: 182.3 kB / 0.8846 GB, free: 15 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.02261, allocations: 7.938 kB / 0.8847 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.02262, allocations: 0 / 0.8847 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.02262, allocations: 0 / 0.8847 GB, free: 14.99 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000389/0.02301, allocations: 169.5 kB / 0.8848 GB, free: 14.79 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.02301, allocations: 3.938 kB / 0.8848 GB, free: 14.79 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.02328, allocations: 27.97 kB / 0.8848 GB, free: 14.76 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.02328, allocations: 0 / 0.8848 GB, free: 14.76 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.02331, allocations: 7.984 kB / 0.8849 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.02331, allocations: 0 / 0.8849 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.02331, allocations: 7.938 kB / 0.8849 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008975/0.02421, allocations: 307.8 kB / 0.8852 GB, free: 14.42 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.601e-05/0.02423, allocations: 11.89 kB / 0.8852 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.02427, allocations: 0 / 0.8852 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003649/0.02463, allocations: 19.97 kB / 0.8852 GB, free: 14.39 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.651e-05/0.0247, allocations: 11.92 kB / 0.8852 GB, free: 14.38 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/0.02473, allocations: 7.984 kB / 0.8852 GB, free: 14.37 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001587/0.02489, allocations: 161.2 kB / 0.8854 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.7e-07/0.02489, allocations: 0 / 0.8854 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004625/0.02535, allocations: 27.95 kB / 0.8854 GB, free: 14.19 MB / 0.8542 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.00017/0.02552, allocations: 91.25 kB / 0.8855 GB, free: 14.09 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0007882/0.02631, allocations: 155.6 kB / 0.8856 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.02631, allocations: 4.125 kB / 0.8856 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003853/0.02669, allocations: 79.83 kB / 0.8857 GB, free: 13.85 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004529/0.02715, allocations: 24.09 kB / 0.8857 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008475/0.028, allocations: 254.6 kB / 0.886 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.02813, allocations: 93.17 kB / 0.8861 GB, free: 13.44 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001487/0.02828, allocations: 19.98 kB / 0.8861 GB, free: 13.42 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.835e-05/0.02836, allocations: 12.5 kB / 0.8861 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of SimCode: time 5.31e-07/0.02837, allocations: 3.938 kB / 0.8861 GB, free: 13.4 MB / 0.8542 GB Notification: Performance of Templates: time 0.006718/0.03508, allocations: 1.551 MB / 0.8876 GB, free: 11.88 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.331542875035666]