Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_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.00145/0.00145, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 199.7 kB / 16.79 MB, free: 6.809 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.436/1.436, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.803/2.803, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 64.97 kB / 0.899 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2799, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003031/0.283, allocations: 1.502 MB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008517/0.2838, allocations: 470.8 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.231e-05/0.2839, allocations: 4 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.287e-05/0.2839, allocations: 3.984 kB / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.278e-05/0.284, allocations: 7.922 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001882/0.2842, allocations: 19.98 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.418e-05/0.2843, allocations: 15.94 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.877e-05/0.2844, allocations: 15.92 kB / 1.055 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.606e-05/0.2845, allocations: 7.938 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.896e-05/0.2845, allocations: 15.92 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.185e-05/0.2845, allocations: 0 / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8e-05/0.2846, allocations: 23.97 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.789e-05/0.2847, allocations: 8 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.305e-05/0.2847, allocations: 7.875 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.993e-05/0.2848, allocations: 23.97 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2848, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.82e-07/0.2848, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.726e-06/0.2848, allocations: 0 / 1.055 GB, free: 6.195 MB / 0.8106 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.0004636/0.2853, allocations: 343.7 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.2853, allocations: 11.97 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.268e-05/0.2854, allocations: 8.922 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.2855, allocations: 168.4 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.2855, allocations: 384 / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.2855, allocations: 384 / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001809/0.2857, allocations: 53.98 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.2857, allocations: 0 / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.2857, allocations: 0 / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.2858, allocations: 4 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.2859, allocations: 39.91 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003594/0.2863, allocations: 248.9 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.2864, allocations: 38.56 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.033e-05/0.2865, allocations: 28.89 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.2867, allocations: 89.09 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.2867, allocations: 30.56 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.2867, allocations: 0 / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003595/0.2871, allocations: 89.48 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.2871, allocations: 51.41 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.816e-05/0.2872, allocations: 106 kB / 1.056 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.2873, allocations: 33.64 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.527e-05/0.2873, allocations: 80.14 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.731e-05/0.2873, allocations: 3.906 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.2874, allocations: 17.72 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.2875, allocations: 314.8 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.27e-05/0.2876, allocations: 15.98 kB / 1.057 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.706e-05/0.2877, allocations: 19.98 kB / 1.057 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.2878, allocations: 44.75 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2878, allocations: 3.938 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001911/0.288, allocations: 61.67 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2881, allocations: 4 kB / 1.057 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2881, allocations: 4.031 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.2881, allocations: 4 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.11e-05/0.2882, allocations: 15.98 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.2882, allocations: 0 / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.995e-05/0.2883, allocations: 11.92 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.2883, allocations: 0 / 1.057 GB, free: 4.047 MB / 0.8106 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 7.176e-05/0.2883, allocations: 109.8 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.492e-05/0.2884, allocations: 4 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002289/0.2886, allocations: 76.72 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2886, allocations: 4 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2886, allocations: 0 / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.2886, allocations: 0 / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.2888, allocations: 161.6 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2888, allocations: 0 / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.912e-05/0.2889, allocations: 11.98 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.2889, allocations: 0 / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.2889, allocations: 32 / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2889, allocations: 4 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2889, allocations: 0 / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002425/0.2891, allocations: 171.3 kB / 1.057 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.2892, allocations: 77.11 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.2892, allocations: 4.25 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.134e-05/0.2893, allocations: 12.02 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.06e-05/0.2894, allocations: 4 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-06/0.2894, allocations: 0 / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.548e-05/0.2894, allocations: 91.2 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2894, allocations: 0 / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002242/0.2897, allocations: 4 kB / 1.057 GB, free: 3.23 MB / 0.8106 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.000167/0.2898, allocations: 103.2 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002195/0.2901, allocations: 43.95 kB / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2901, allocations: 0 / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.444e-05/0.2902, allocations: 15.98 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.2905, allocations: 7.938 kB / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003192/0.2908, allocations: 137.1 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.2911, allocations: 0.6848 MB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.294e-05/0.2911, allocations: 7.438 kB / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of SimCode: time 3e-07/0.2911, allocations: 0 / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of Templates: time 0.002202/0.2933, allocations: 0.6489 MB / 1.059 GB, free: 1.516 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches