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.001706/0.001706, allocations: 92.7 kB / 19.44 MB, free: 320 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.002291/0.002291, allocations: 165.3 kB / 22.76 MB, free: 1.648 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.516/1.516, allocations: 177.1 MB / 203.1 MB, free: 5.602 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.195/3.195, allocations: 429.6 MB / 0.673 GB, free: 3.863 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.272e-06/1.272e-06, allocations: 0 / 0.8776 GB, free: 6.457 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.463e-05/2.59e-05, allocations: 5.125 kB / 0.8776 GB, free: 6.453 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003207/0.003232, allocations: 1.774 MB / 0.8793 GB, free: 4.695 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001376/0.004609, allocations: 0.6824 MB / 0.88 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.226e-05/0.004671, allocations: 0 / 0.88 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.442e-05/0.004715, allocations: 12.98 kB / 0.88 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.247e-05/0.004788, allocations: 19.75 kB / 0.88 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005917/0.00538, allocations: 187.3 kB / 0.8802 GB, free: 3.797 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002058/0.005585, allocations: 131.5 kB / 0.8803 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.005713, allocations: 33.61 kB / 0.8804 GB, free: 3.633 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002009/0.005914, allocations: 86.69 kB / 0.8804 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.683e-05/0.006001, allocations: 31.91 kB / 0.8805 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.224e-05/0.006033, allocations: 12 kB / 0.8805 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.006156, allocations: 51.89 kB / 0.8805 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.536e-05/0.006201, allocations: 35.89 kB / 0.8806 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.784e-05/0.006259, allocations: 35.89 kB / 0.8806 GB, free: 3.387 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000323/0.006582, allocations: 175.4 kB / 0.8808 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.006586, allocations: 0 / 0.8808 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.142e-06/0.006587, allocations: 0.7188 kB / 0.8808 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.006593, allocations: 0 / 0.8808 GB, free: 3.215 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.0007566/0.00735, allocations: 375.2 kB / 0.8811 GB, free: 2.82 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.007388, allocations: 8.031 kB / 0.8811 GB, free: 2.812 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001094/0.008482, allocations: 140.1 kB / 0.8813 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002908/0.008773, allocations: 152 kB / 0.8814 GB, free: 2.508 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/0.008921, allocations: 119.4 kB / 0.8815 GB, free: 2.367 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.16e-05/0.008953, allocations: 12.38 kB / 0.8815 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006016/0.009554, allocations: 221.2 kB / 0.8818 GB, free: 2.121 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.009562, allocations: 0 / 0.8818 GB, free: 2.121 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.47e-05/0.009587, allocations: 4 kB / 0.8818 GB, free: 2.117 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.009594, allocations: 4 kB / 0.8818 GB, free: 2.113 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009836/0.01058, allocations: 159.8 kB / 0.8819 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.01171, allocations: 409.8 kB / 0.8823 GB, free: 1.527 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.01278, allocations: 210.3 kB / 0.8825 GB, free: 1.312 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003273/0.01311, allocations: 80.91 kB / 0.8826 GB, free: 1.23 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.01313, allocations: 3.984 kB / 0.8826 GB, free: 1.227 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.01317, allocations: 38.5 kB / 0.8826 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.01317, allocations: 0 / 0.8826 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.001109/0.01428, allocations: 261.4 kB / 0.8829 GB, free: 0.918 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.01433, allocations: 59.33 kB / 0.8829 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.01448, allocations: 144.5 kB / 0.8831 GB, free: 0.6953 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.01451, allocations: 25.7 kB / 0.8831 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.801e-05/0.0146, allocations: 108.2 kB / 0.8832 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/0.01463, allocations: 23.84 kB / 0.8832 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.463e-05/0.0147, allocations: 21.72 kB / 0.8832 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001888/0.01488, allocations: 318.8 kB / 0.8835 GB, free: 188 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003269/0.01521, allocations: 75.92 kB / 0.8836 GB, free: 112 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003302/0.01554, allocations: 98.42 kB / 0.8837 GB, free: 4 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006541/0.0162, allocations: 158.4 kB / 0.8839 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.0162, allocations: 0 / 0.8839 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000741/0.01694, allocations: 213.5 kB / 0.8841 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.01695, allocations: 4 kB / 0.8841 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.01696, allocations: 4 kB / 0.8841 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.01698, allocations: 3.938 kB / 0.8841 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.01725, allocations: 43.83 kB / 0.8841 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.01726, allocations: 3.984 kB / 0.8841 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.01747, allocations: 35.86 kB / 0.8842 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.01748, allocations: 4 kB / 0.8842 GB, free: 15.53 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.0001202/0.0176, allocations: 113.8 kB / 0.8843 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.186e-05/0.01766, allocations: 7.953 kB / 0.8843 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007922/0.01845, allocations: 214.5 kB / 0.8845 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.01845, allocations: 3.938 kB / 0.8845 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.01846, allocations: 64 / 0.8845 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.01846, allocations: 4 kB / 0.8845 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.01873, allocations: 162.2 kB / 0.8846 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.01873, allocations: 0 / 0.8846 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002399/0.01897, allocations: 31.95 kB / 0.8847 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.01897, allocations: 0 / 0.8847 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.01898, allocations: 4 kB / 0.8847 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.01898, allocations: 0 / 0.8847 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.299e-06/0.01899, allocations: 3.938 kB / 0.8847 GB, free: 14.94 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000783/0.01977, allocations: 287.3 kB / 0.885 GB, free: 14.64 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.292e-05/0.01979, allocations: 3.953 kB / 0.885 GB, free: 14.64 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.01981, allocations: 11.92 kB / 0.885 GB, free: 14.63 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/0.02012, allocations: 31.95 kB / 0.885 GB, free: 14.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.413e-05/0.02017, allocations: 7.938 kB / 0.885 GB, free: 14.59 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.02019, allocations: 7.984 kB / 0.885 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.585e-05/0.02028, allocations: 112 kB / 0.8851 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.02028, allocations: 0 / 0.8851 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002766/0.02056, allocations: 27.89 kB / 0.8851 GB, free: 14.45 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.0001464/0.02071, allocations: 95.25 kB / 0.8852 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006884/0.02139, allocations: 167.8 kB / 0.8854 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.0214, allocations: 0 / 0.8854 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003351/0.02173, allocations: 80.05 kB / 0.8855 GB, free: 14.1 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.02203, allocations: 26.62 kB / 0.8855 GB, free: 14.08 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007027/0.02274, allocations: 249 kB / 0.8857 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.549e-05/0.02283, allocations: 89.17 kB / 0.8858 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.222e-05/0.02292, allocations: 23.92 kB / 0.8858 GB, free: 13.68 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.595e-05/0.02299, allocations: 20.44 kB / 0.8859 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of SimCode: time 4.91e-07/0.02299, allocations: 4 kB / 0.8859 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of Templates: time 0.004634/0.02762, allocations: 1.563 MB / 0.8874 GB, free: 12.13 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) [Timeout 800] 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.146005828981288]