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.00182/0.00182, allocations: 100 kB / 16.35 MB, free: 5.824 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.002151/0.002151, allocations: 196.6 kB / 17.29 MB, free: 5.48 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.446/2.446, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 63.75 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2833, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002646/0.286, allocations: 1.462 MB / 1.028 GB, free: 0.5703 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007147/0.2867, allocations: 467.6 kB / 1.029 GB, free: 108 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.13e-05/0.2867, allocations: 0 / 1.029 GB, free: 108 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.322e-05/0.2868, allocations: 0 / 1.029 GB, free: 108 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.475e-05/0.2868, allocations: 7.938 kB / 1.029 GB, free: 100 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001895/0.287, allocations: 23.92 kB / 1.029 GB, free: 76 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.243e-05/0.2871, allocations: 27.92 kB / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.917e-05/0.2872, allocations: 4 kB / 1.029 GB, free: 44 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.173e-05/0.2873, allocations: 15.92 kB / 1.029 GB, free: 28 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.546e-05/0.2873, allocations: 7.984 kB / 1.029 GB, free: 20 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.411e-05/0.2873, allocations: 7.984 kB / 1.029 GB, free: 12 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.551e-05/0.2874, allocations: 19.92 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.404e-05/0.2874, allocations: 8 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.85e-05/0.2875, allocations: 3.938 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.2876, allocations: 39.88 kB / 1.029 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2876, allocations: 7.938 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2876, allocations: 0 / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.2876, allocations: 0 / 1.029 GB, free: 15.93 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.0004152/0.288, allocations: 344.6 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.2881, allocations: 12.03 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.975e-05/0.2881, allocations: 0.9375 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.2882, allocations: 164.4 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.2882, allocations: 384 / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.675e-06/0.2883, allocations: 4.375 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.2884, allocations: 57.97 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.2884, allocations: 0 / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.2885, allocations: 0 / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.2885, allocations: 0 / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.2886, allocations: 39.89 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003101/0.2889, allocations: 256.8 kB / 1.03 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001174/0.2891, allocations: 38.56 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.56e-05/0.2892, allocations: 24.84 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001297/0.2893, allocations: 89.09 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.2893, allocations: 30.56 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.2893, allocations: 0 / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003289/0.2897, allocations: 85.58 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.2897, allocations: 55.41 kB / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.121e-05/0.2898, allocations: 97.86 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.2898, allocations: 29.7 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.866e-05/0.2899, allocations: 84.12 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.576e-05/0.2899, allocations: 3.906 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.369e-05/0.2899, allocations: 21.84 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2901, allocations: 310.8 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.883e-05/0.2902, allocations: 11.98 kB / 1.03 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.945e-05/0.2902, allocations: 23.97 kB / 1.03 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.2904, allocations: 48.77 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2904, allocations: 256 / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001776/0.2906, allocations: 61.66 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.2906, allocations: 8 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.2906, allocations: 7.938 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.2906, allocations: 0 / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.093e-05/0.2907, allocations: 7.984 kB / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.2907, allocations: 4 kB / 1.031 GB, free: 13.81 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.669e-05/0.2908, allocations: 15.97 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.2908, allocations: 0 / 1.031 GB, free: 13.79 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.208e-05/0.2909, allocations: 113.8 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.522e-05/0.2909, allocations: 4 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002179/0.2911, allocations: 72.72 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.2911, allocations: 0 / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2911, allocations: 0 / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2911, allocations: 4.031 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.2913, allocations: 169.5 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2913, allocations: 0 / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.157e-05/0.2914, allocations: 4 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2914, allocations: 0 / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-06/0.2914, allocations: 4 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2914, allocations: 0 / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2914, allocations: 3.984 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002281/0.2917, allocations: 167.4 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.495e-05/0.2917, allocations: 81.09 kB / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.2917, allocations: 0 / 1.031 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.172e-05/0.2918, allocations: 4 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.2918, allocations: 3.984 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.2919, allocations: 7.938 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.215e-05/0.2919, allocations: 83.28 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2919, allocations: 4.031 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002308/0.2921, allocations: 4 kB / 1.031 GB, free: 12.97 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.0001809/0.2923, allocations: 103.2 kB / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002123/0.2926, allocations: 31.97 kB / 1.031 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2926, allocations: 0 / 1.031 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.424e-05/0.2927, allocations: 27.98 kB / 1.031 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.293, allocations: 11.92 kB / 1.031 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002916/0.2933, allocations: 105.5 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.2935, allocations: 0.6729 MB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.207e-05/0.2935, allocations: 3.938 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.038e-05/0.2936, allocations: 11.44 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.2936, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of Templates: time 0.002864/0.2964, allocations: 0.5798 MB / 1.033 GB, free: 11.38 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 -s gbode -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