Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.001895/0.001895, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.002213/0.002213, allocations: 211.4 kB / 22.24 MB, free: 5.262 MB / 14.72 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: 230.6 MB / 256 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.304/3.304, allocations: 0.4892 GB / 0.7943 GB, free: 35.42 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 65.45 kB / 1.154 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3508, allocations: 176.1 MB / 1.326 GB, free: 1.875 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002908/0.3537, allocations: 1.459 MB / 1.327 GB, free: 420 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008771/0.3546, allocations: 482.8 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.826e-05/0.3546, allocations: 0 / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.216e-05/0.3547, allocations: 0 / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.575e-05/0.3547, allocations: 3.938 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001656/0.3549, allocations: 27.91 kB / 1.327 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 6.097e-05/0.3549, allocations: 23.92 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 7.738e-05/0.355, allocations: 8 kB / 1.327 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.838e-05/0.3551, allocations: 8 kB / 1.327 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 3.2e-05/0.3551, allocations: 11.92 kB / 1.327 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.3551, allocations: 8 kB / 1.327 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.586e-05/0.3552, allocations: 19.92 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.166e-05/0.3552, allocations: 0 / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.294e-05/0.3552, allocations: 15.92 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.3553, allocations: 31.83 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3553, allocations: 0 / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3553, allocations: 0 / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.3553, allocations: 0 / 1.328 GB, free: 15.78 MB / 1.029 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.0004109/0.3557, allocations: 266.3 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.3558, allocations: 8.031 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.651e-05/0.3558, allocations: 8.938 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.3559, allocations: 110.5 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.3559, allocations: 4.375 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-06/0.3559, allocations: 4.375 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001614/0.3561, allocations: 53.98 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3561, allocations: 0 / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.3561, allocations: 3.984 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.655e-06/0.3561, allocations: 3.938 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.3563, allocations: 39.95 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002694/0.3565, allocations: 192.5 kB / 1.328 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.3567, allocations: 42.53 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.874e-05/0.3568, allocations: 24.91 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 7.717e-05/0.3568, allocations: 4 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.3569, allocations: 34.5 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.3569, allocations: 0 / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.000379/0.3572, allocations: 85.64 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.975e-05/0.3573, allocations: 55.34 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.141e-05/0.3574, allocations: 105.8 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.3574, allocations: 25.7 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.076e-05/0.3574, allocations: 80.14 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.3575, allocations: 15.88 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.309e-05/0.3575, allocations: 17.7 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3577, allocations: 314.8 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.558e-05/0.3578, allocations: 20.11 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.827e-05/0.3578, allocations: 11.98 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.358, allocations: 44.75 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.358, allocations: 0 / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002013/0.3582, allocations: 73.66 kB / 1.329 GB, free: 13.99 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.3582, allocations: 11.98 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-06/0.3582, allocations: 0 / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.3582, allocations: 4 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.854e-05/0.3583, allocations: 4 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.554e-06/0.3583, allocations: 0 / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.466e-05/0.3583, allocations: 7.984 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-06/0.3583, allocations: 0 / 1.329 GB, free: 13.96 MB / 1.029 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 8.306e-05/0.3584, allocations: 114.9 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.126e-05/0.3584, allocations: 0 / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002273/0.3587, allocations: 88.88 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3587, allocations: 0 / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.3587, allocations: 0 / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-06/0.3587, allocations: 0 / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.3588, allocations: 101.3 kB / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3588, allocations: 3.938 kB / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.051e-05/0.3589, allocations: 11.98 kB / 1.329 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3589, allocations: 0 / 1.329 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.3589, allocations: 288 / 1.329 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3589, allocations: 4 kB / 1.329 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.3589, allocations: 8 kB / 1.329 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002486/0.3591, allocations: 167.4 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.484e-06/0.3591, allocations: 3.938 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.13e-05/0.3592, allocations: 3.984 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.114e-05/0.3592, allocations: 11.88 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.3593, allocations: 4 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.3593, allocations: 3.984 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.768e-05/0.3593, allocations: 87.31 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 5e-08/0.3593, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000211/0.3595, allocations: 4 kB / 1.33 GB, free: 13.29 MB / 1.029 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.0001444/0.3597, allocations: 103.2 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001886/0.3599, allocations: 39.95 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.3599, allocations: 0 / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.505e-05/0.3599, allocations: 27.98 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.3602, allocations: 9.344 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002206/0.3604, allocations: 105 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.471e-05/0.3605, allocations: 59.34 kB / 1.33 GB, free: 12.9 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.388e-05/0.3605, allocations: 4 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.839e-05/0.3605, allocations: 7.438 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of SimCode: time 2.61e-07/0.3605, allocations: 0 / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of Templates: time 0.002646/0.3632, allocations: 0.601 MB / 1.331 GB, free: 12.29 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.SmoothHeaviside.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: 9.014045620337129]