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.0009442/0.0009442, allocations: 88.22 kB / 19.65 MB, free: 272 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.0009565/0.0009565, allocations: 177 kB / 23.03 MB, free: 1.535 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 0.9161/0.9161, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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 2.147/2.147, allocations: 429.5 MB / 0.6732 GB, free: 4.051 MB / 0.6355 GB " [Timeout remaining time 177] 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.412e-06/1.412e-06, allocations: 1.094 kB / 0.8782 GB, free: 6.301 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.326e-05/2.468e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.297 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.00229/0.002314, allocations: 1.824 MB / 0.88 GB, free: 4.484 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0009764/0.003291, allocations: 0.7192 MB / 0.8807 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.665e-05/0.003357, allocations: 0 / 0.8807 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.609e-05/0.003393, allocations: 12.36 kB / 0.8807 GB, free: 3.75 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.68e-05/0.00346, allocations: 21.48 kB / 0.8807 GB, free: 3.73 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004882/0.003949, allocations: 181.3 kB / 0.8809 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.000167/0.004116, allocations: 128.3 kB / 0.881 GB, free: 3.43 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.00425, allocations: 37.59 kB / 0.881 GB, free: 3.391 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.00443, allocations: 89.39 kB / 0.8811 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.183e-05/0.004502, allocations: 31.89 kB / 0.8811 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.004526, allocations: 12 kB / 0.8812 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.004631, allocations: 43.97 kB / 0.8812 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.867e-05/0.004659, allocations: 37.86 kB / 0.8812 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.89e-05/0.004698, allocations: 39.83 kB / 0.8813 GB, free: 3.145 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.004889, allocations: 151.4 kB / 0.8814 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.004891, allocations: 0 / 0.8814 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.52e-07/0.004892, allocations: 0 / 0.8814 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.329e-06/0.004896, allocations: 2.562 kB / 0.8814 GB, free: 2.996 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.0004356/0.005332, allocations: 463.9 kB / 0.8819 GB, free: 2.508 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.005369, allocations: 12.03 kB / 0.8819 GB, free: 2.496 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004497/0.005819, allocations: 106.8 kB / 0.882 GB, free: 2.395 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/0.005997, allocations: 155 kB / 0.8821 GB, free: 2.219 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.952e-05/0.006077, allocations: 115.4 kB / 0.8822 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.006097, allocations: 16.38 kB / 0.8822 GB, free: 2.066 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.006368, allocations: 197.9 kB / 0.8824 GB, free: 1.852 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.006375, allocations: 0 / 0.8824 GB, free: 1.852 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.006394, allocations: 0 / 0.8824 GB, free: 1.852 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.006402, allocations: 4 kB / 0.8824 GB, free: 1.848 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.418e-05/0.006496, allocations: 55.97 kB / 0.8825 GB, free: 1.793 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006094/0.007106, allocations: 433.2 kB / 0.8829 GB, free: 1.336 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003035/0.007409, allocations: 143 kB / 0.883 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.076e-05/0.00746, allocations: 31.81 kB / 0.8831 GB, free: 1.148 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.007478, allocations: 7.984 kB / 0.8831 GB, free: 1.141 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.007513, allocations: 45.33 kB / 0.8831 GB, free: 1.086 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.007514, allocations: 0 / 0.8831 GB, free: 1.086 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.000255/0.007769, allocations: 113.6 kB / 0.8832 GB, free: 0.9688 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.007798, allocations: 55.34 kB / 0.8833 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.007908, allocations: 203.2 kB / 0.8835 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.007928, allocations: 29.7 kB / 0.8835 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.978e-05/0.007988, allocations: 154.9 kB / 0.8837 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.008009, allocations: 23.83 kB / 0.8837 GB, free: 484 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.515e-05/0.008054, allocations: 31.36 kB / 0.8837 GB, free: 444 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.008192, allocations: 0.4884 MB / 0.8842 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.908e-05/0.008241, allocations: 31.98 kB / 0.8842 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.29e-05/0.008304, allocations: 54.98 kB / 0.8843 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.008407, allocations: 75.05 kB / 0.8843 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.008409, allocations: 3.938 kB / 0.8843 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001539/0.008563, allocations: 113.5 kB / 0.8844 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.008576, allocations: 4 kB / 0.8845 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.008581, allocations: 0 / 0.8845 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.008598, allocations: 12 kB / 0.8845 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.008715, allocations: 27.91 kB / 0.8845 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.008721, allocations: 0 / 0.8845 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.058e-05/0.008781, allocations: 19.97 kB / 0.8845 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.629e-06/0.008791, allocations: 0 / 0.8845 GB, free: 15.57 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.000122/0.008913, allocations: 160.6 kB / 0.8847 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.837e-05/0.008941, allocations: 7.953 kB / 0.8847 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001771/0.009118, allocations: 114.7 kB / 0.8848 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.009124, allocations: 15.91 kB / 0.8848 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.009128, allocations: 0 / 0.8848 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.009131, allocations: 0 / 0.8848 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001473/0.009279, allocations: 173.3 kB / 0.885 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.00928, allocations: 0 / 0.885 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.685e-05/0.009357, allocations: 23.97 kB / 0.885 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.00936, allocations: 0 / 0.885 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.009373, allocations: 8 kB / 0.885 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.009375, allocations: 4 kB / 0.885 GB, free: 15.01 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.009377, allocations: 3.938 kB / 0.885 GB, free: 15.01 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.009563, allocations: 243.8 kB / 0.8852 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.033e-05/0.009574, allocations: 11.95 kB / 0.8852 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.00959, allocations: 3.984 kB / 0.8852 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.469e-05/0.009684, allocations: 15.98 kB / 0.8853 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.009723, allocations: 11.92 kB / 0.8853 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.009736, allocations: 7.984 kB / 0.8853 GB, free: 14.7 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.419e-05/0.00979, allocations: 144.3 kB / 0.8854 GB, free: 14.56 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.00979, allocations: 0 / 0.8854 GB, free: 14.56 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001699/0.00996, allocations: 31.95 kB / 0.8854 GB, free: 14.53 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 9.424e-05/0.01005, allocations: 95.23 kB / 0.8855 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001532/0.01021, allocations: 75.59 kB / 0.8856 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01021, allocations: 0 / 0.8856 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 5.564e-05/0.01026, allocations: 47.61 kB / 0.8857 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.01047, allocations: 22.27 kB / 0.8857 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005247/0.01099, allocations: 246.6 kB / 0.8859 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.043e-05/0.01103, allocations: 63.34 kB / 0.886 GB, free: 13.93 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.537e-05/0.01109, allocations: 12 kB / 0.886 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.907e-05/0.01114, allocations: 16.48 kB / 0.886 GB, free: 13.9 MB / 0.8542 GB Notification: Performance of SimCode: time 6.71e-07/0.01114, allocations: 0 / 0.886 GB, free: 13.9 MB / 0.8542 GB Notification: Performance of Templates: time 0.00349/0.01463, allocations: 1.699 MB / 0.8877 GB, free: 12.22 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.265470338985324]