Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 99.36 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002056/0.002057, allocations: 195.5 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.71/2.71, allocations: 437 MB / 0.71 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 63.91 kB / 0.8687 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6928/0.6941, allocations: 151.6 MB / 1.017 GB, free: 2.727 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002717/0.6968, allocations: 1.507 MB / 1.018 GB, free: 1.211 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007317/0.6976, allocations: 471.8 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.903e-05/0.6976, allocations: 0 / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.111e-05/0.6977, allocations: 0 / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.015e-05/0.6977, allocations: 3.938 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002191/0.698, allocations: 15.98 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.926e-05/0.698, allocations: 23.92 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.496e-05/0.6981, allocations: 11.98 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.114e-05/0.6982, allocations: 15.86 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.664e-05/0.6982, allocations: 8 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.6982, allocations: 8 kB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.868e-05/0.6983, allocations: 23.95 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.428e-05/0.6983, allocations: 7.938 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.388e-05/0.6984, allocations: 11.94 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.6985, allocations: 31.94 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.6985, allocations: 0 / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.303e-06/0.6985, allocations: 0 / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.6985, allocations: 0 / 1.019 GB, free: 0.582 MB / 0.7637 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.0004568/0.699, allocations: 341.4 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.699, allocations: 12.03 kB / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.22e-05/0.6991, allocations: 8.844 kB / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.6992, allocations: 168.3 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.6992, allocations: 8.25 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.21e-05/0.6992, allocations: 4.375 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001721/0.6994, allocations: 49.98 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.6994, allocations: 4 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.6994, allocations: 0 / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.6994, allocations: 0 / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.6996, allocations: 35.95 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002937/0.6999, allocations: 248.9 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001221/0.7, allocations: 42.48 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.583e-05/0.7001, allocations: 24.91 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001212/0.7003, allocations: 81.11 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.7003, allocations: 34.55 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.7003, allocations: 3.938 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003224/0.7006, allocations: 81.56 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.7007, allocations: 63.45 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.7008, allocations: 105.9 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.7008, allocations: 25.7 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.269e-05/0.7009, allocations: 84.14 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.646e-05/0.7009, allocations: 11.91 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.373e-05/0.7009, allocations: 13.7 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.701, allocations: 314.8 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.908e-05/0.7011, allocations: 15.98 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.858e-05/0.7012, allocations: 15.98 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.7014, allocations: 48.75 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.7014, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000183/0.7015, allocations: 65.66 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.7016, allocations: 8.094 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.7016, allocations: 3.938 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/0.7016, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.594e-05/0.7017, allocations: 8 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.7017, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.475e-05/0.7017, allocations: 7.984 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.7018, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 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 6.775e-05/0.7018, allocations: 113.8 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.7019, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002287/0.7021, allocations: 84.7 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.7021, allocations: 0 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.7021, allocations: 0 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.7021, allocations: 0 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.7023, allocations: 157.6 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.7023, allocations: 0 / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.974e-05/0.7024, allocations: 15.92 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.7024, allocations: 32 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.7024, allocations: 4 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.7024, allocations: 0 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.7024, allocations: 0 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.7026, allocations: 167.4 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.7027, allocations: 85.09 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.7027, allocations: 0 / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.43e-05/0.7028, allocations: 12.02 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.7028, allocations: 4.25 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-06/0.7028, allocations: 0 / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.847e-05/0.7029, allocations: 87.27 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7029, allocations: 0 / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002179/0.7031, allocations: 11.94 kB / 1.021 GB, free: 13.61 MB / 0.7794 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.0001414/0.7032, allocations: 99.23 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002095/0.7035, allocations: 51.89 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.7035, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.3e-05/0.7036, allocations: 15.98 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.7039, allocations: 18.12 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002724/0.7041, allocations: 109.8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.7044, allocations: 0.6768 MB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.724e-05/0.7044, allocations: 3.984 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.017e-05/0.7044, allocations: 11.44 kB / 1.022 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.7044, allocations: 0 / 1.022 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of Templates: time 0.002969/0.7074, allocations: 0.5041 MB / 1.023 GB, free: 12.08 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches