Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.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.00149/0.00149, allocations: 73.09 kB / 20.66 MB, free: 3.844 MB / 18.57 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.00141/0.00141, allocations: 169 kB / 24.05 MB, free: 460 kB / 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.053/1.053, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.181/2.181, allocations: 429.5 MB / 0.6743 GB, free: 3.918 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.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 1.094 kB / 0.8794 GB, free: 6.016 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.529e-05/2.714e-05, allocations: 6.25 kB / 0.8794 GB, free: 6.008 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.003029/0.003056, allocations: 1.521 MB / 0.8809 GB, free: 4.5 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001095/0.00415, allocations: 0.5922 MB / 0.8815 GB, free: 3.906 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.48e-05/0.004215, allocations: 4.938 kB / 0.8815 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.175e-05/0.004247, allocations: 3.938 kB / 0.8815 GB, free: 3.898 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.228e-05/0.004309, allocations: 4.969 kB / 0.8815 GB, free: 3.895 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003243/0.004634, allocations: 60.86 kB / 0.8815 GB, free: 3.836 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001161/0.00475, allocations: 31.86 kB / 0.8816 GB, free: 3.805 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.026e-05/0.00484, allocations: 4 kB / 0.8816 GB, free: 3.801 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.005006, allocations: 36.91 kB / 0.8816 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 4.708e-05/0.005053, allocations: 4 kB / 0.8816 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.005068, allocations: 7.984 kB / 0.8816 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.005203, allocations: 52.95 kB / 0.8817 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.435e-05/0.005217, allocations: 3.938 kB / 0.8817 GB, free: 3.699 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 2.089e-05/0.005238, allocations: 8 kB / 0.8817 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001679/0.005406, allocations: 80.42 kB / 0.8818 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.00541, allocations: 4.562 kB / 0.8818 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.11e-07/0.005411, allocations: 0 / 0.8818 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.005415, allocations: 1.406 kB / 0.8818 GB, free: 3.609 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003874/0.005802, allocations: 368.4 kB / 0.8821 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.005842, allocations: 12.03 kB / 0.8821 GB, free: 3.203 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005723/0.01157, allocations: 1.137 MB / 0.8832 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.01182, allocations: 160.5 kB / 0.8834 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.01183, allocations: 384 / 0.8834 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.01187, allocations: 384 / 0.8834 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.01309, allocations: 326.6 kB / 0.8837 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.0131, allocations: 192 / 0.8837 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.01313, allocations: 384 / 0.8837 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.01314, allocations: 7.938 kB / 0.8837 GB, free: 1.559 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/0.01343, allocations: 79.94 kB / 0.8838 GB, free: 1.48 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/0.01595, allocations: 0.8221 MB / 0.8846 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.01714, allocations: 302.8 kB / 0.8849 GB, free: 324 kB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.0173, allocations: 51.72 kB / 0.8849 GB, free: 268 kB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.01732, allocations: 0 / 0.8849 GB, free: 268 kB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.01735, allocations: 45.38 kB / 0.885 GB, free: 212 kB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.523e-06/0.01736, allocations: 0 / 0.885 GB, free: 212 kB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0006827/0.01804, allocations: 153.5 kB / 0.8851 GB, free: 52 kB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.0181, allocations: 51.41 kB / 0.8852 GB, free: 15.99 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.712e-05/0.01819, allocations: 173.9 kB / 0.8853 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.01823, allocations: 25.7 kB / 0.8854 GB, free: 15.77 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.498e-05/0.01828, allocations: 126.9 kB / 0.8855 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 4.426e-05/0.01833, allocations: 12.08 kB / 0.8855 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.01844, allocations: 31.34 kB / 0.8855 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.01859, allocations: 0.4922 MB / 0.886 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.01875, allocations: 31.98 kB / 0.886 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.01891, allocations: 39.97 kB / 0.8861 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.01915, allocations: 51.73 kB / 0.8861 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01915, allocations: 0 / 0.8861 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004301/0.01958, allocations: 109.5 kB / 0.8862 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.0196, allocations: 4 kB / 0.8862 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.01961, allocations: 3.938 kB / 0.8862 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.01962, allocations: 0 / 0.8862 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009686/0.02058, allocations: 191.8 kB / 0.8864 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.02059, allocations: 0 / 0.8864 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008194/0.02141, allocations: 179.8 kB / 0.8866 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.02144, allocations: 7.984 kB / 0.8866 GB, free: 14.47 MB / 0.8542 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 (2): * Single equations (assignments): 2 * 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.0001193/0.02156, allocations: 152.6 kB / 0.8867 GB, free: 14.31 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.692e-05/0.02164, allocations: 4 kB / 0.8867 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.623e-05/0.02171, allocations: 19.56 kB / 0.8868 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.02171, allocations: 0 / 0.8868 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.02171, allocations: 0 / 0.8868 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.02172, allocations: 3.984 kB / 0.8868 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003314/0.02205, allocations: 202.2 kB / 0.887 GB, free: 14.06 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.02205, allocations: 0 / 0.887 GB, free: 14.06 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009006/0.02295, allocations: 191.8 kB / 0.8871 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.02295, allocations: 0 / 0.8871 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.02299, allocations: 11.98 kB / 0.8871 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.02299, allocations: 0 / 0.8871 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.02299, allocations: 7.875 kB / 0.8872 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005212/0.02352, allocations: 255.8 kB / 0.8874 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.169e-05/0.02353, allocations: 4 kB / 0.8874 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/0.02357, allocations: 0 / 0.8874 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009955/0.02456, allocations: 175.9 kB / 0.8876 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.188e-05/0.0246, allocations: 7.938 kB / 0.8876 GB, free: 13.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.02463, allocations: 3.984 kB / 0.8876 GB, free: 13.4 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.978e-05/0.02469, allocations: 143.5 kB / 0.8877 GB, free: 13.26 MB / 0.8542 GB Notification: Performance of sort global known variables: time 9e-08/0.02469, allocations: 0 / 0.8877 GB, free: 13.26 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003645/0.02505, allocations: 32 kB / 0.8877 GB, free: 13.23 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 (2): * Single equations (assignments): 2 * 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.0001532/0.0252, allocations: 99.19 kB / 0.8878 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004073/0.02561, allocations: 95.56 kB / 0.8879 GB, free: 13.02 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.02561, allocations: 0 / 0.8879 GB, free: 13.02 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002046/0.02582, allocations: 63.7 kB / 0.888 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.02614, allocations: 27.91 kB / 0.888 GB, free: 12.93 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006466/0.02679, allocations: 174.2 kB / 0.8882 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.157e-05/0.02683, allocations: 59.34 kB / 0.8882 GB, free: 12.65 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002852/0.02711, allocations: 32 kB / 0.8883 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002658/0.02738, allocations: 82.11 kB / 0.8884 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of SimCode: time 7.91e-07/0.02738, allocations: 0 / 0.8884 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of Templates: time 0.005862/0.03324, allocations: 2.921 MB / 0.8912 GB, free: 9.605 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothLimit.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.522385082673281]