Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_9_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.008704/0.008704, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001969/0.001969, allocations: 193.3 kB / 16.67 MB, free: 5.969 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.614/1.614, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.489/2.489, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 64.34 kB / 0.9509 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.35, allocations: 140.4 MB / 1.088 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002853/0.3529, allocations: 1.435 MB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008934/0.3538, allocations: 469.2 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.838e-05/0.3539, allocations: 4 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.219e-05/0.3539, allocations: 3.984 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.771e-05/0.354, allocations: 7.938 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002403/0.3542, allocations: 23.92 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.327e-05/0.3543, allocations: 27.91 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.972e-05/0.3544, allocations: 4 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.36e-05/0.3545, allocations: 15.92 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.049e-05/0.3546, allocations: 8 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.3546, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.059e-05/0.3547, allocations: 23.92 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.366e-05/0.3547, allocations: 3.984 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.738e-05/0.3547, allocations: 15.94 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.3549, allocations: 35.83 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3549, allocations: 3.938 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.743e-06/0.3549, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.3549, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 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.000461/0.3553, allocations: 347.4 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.3554, allocations: 8.031 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.3554, allocations: 0.9375 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.3556, allocations: 172.3 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.3556, allocations: 4.375 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.3556, allocations: 384 / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000193/0.3558, allocations: 53.98 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.3558, allocations: 0 / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.3558, allocations: 0 / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.3558, allocations: 4 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.356, allocations: 35.89 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003494/0.3564, allocations: 252.9 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/0.3565, allocations: 42.55 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.468e-05/0.3566, allocations: 16.91 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/0.3567, allocations: 81.11 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.3568, allocations: 38.56 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.3568, allocations: 0 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003607/0.3571, allocations: 81.58 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.3572, allocations: 55.41 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.888e-05/0.3573, allocations: 101.8 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.3573, allocations: 25.7 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.876e-05/0.3573, allocations: 88.27 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.3574, allocations: 3.953 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.402e-05/0.3574, allocations: 13.72 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3575, allocations: 318.8 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.41e-05/0.3576, allocations: 15.98 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.537e-05/0.3577, allocations: 15.98 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001563/0.3578, allocations: 48.81 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3578, allocations: 0 / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001927/0.358, allocations: 65.61 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.3581, allocations: 4 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3581, allocations: 3.938 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.3581, allocations: 3.984 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.841e-05/0.3582, allocations: 12.03 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.3582, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.508e-05/0.3583, allocations: 19.88 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.3583, allocations: 256 / 1.092 GB, free: 13.29 MB / 0.8575 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.915e-05/0.3584, allocations: 109.8 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.385e-05/0.3584, allocations: 4 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002452/0.3586, allocations: 76.7 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.3586, allocations: 8.031 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3587, allocations: 7.984 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3587, allocations: 0 / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/0.3588, allocations: 161.6 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3588, allocations: 0 / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.131e-05/0.3589, allocations: 15.92 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3589, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.331e-06/0.3589, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.3589, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3589, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002471/0.3592, allocations: 167.5 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.536e-05/0.3592, allocations: 85 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.3593, allocations: 4 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.392e-05/0.3593, allocations: 3.984 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.812e-05/0.3594, allocations: 4 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.3594, allocations: 4.031 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.226e-05/0.3594, allocations: 87.27 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3594, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002246/0.3597, allocations: 8 kB / 1.093 GB, free: 12.45 MB / 0.8575 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.0001602/0.3598, allocations: 95.78 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002234/0.3601, allocations: 39.95 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.3601, allocations: 4.062 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.3602, allocations: 19.98 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/0.3605, allocations: 3.938 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002701/0.3608, allocations: 113.5 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/0.361, allocations: 0.6768 MB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.585e-05/0.3611, allocations: 3.938 kB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.817e-05/0.3611, allocations: 11.5 kB / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.3611, allocations: 0 / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of Templates: time 0.002771/0.3639, allocations: 0.5607 MB / 1.094 GB, free: 10.88 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches