Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, 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.001609/0.001609, allocations: 196 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.404/1.404, 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.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 60.25 kB / 0.8991 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2814, allocations: 157.4 MB / 1.053 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0018/0.2832, allocations: 0.6465 MB / 1.053 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001276/0.2845, allocations: 1.116 MB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.336e-05/0.2846, allocations: 7.938 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.789e-05/0.2846, allocations: 0 / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002207/0.2848, allocations: 8 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.005e-06/0.2848, allocations: 0 / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.126e-05/0.2849, allocations: 11.97 kB / 1.055 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.91e-05/0.2849, allocations: 4 kB / 1.055 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.364e-05/0.2849, allocations: 3.938 kB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.292e-05/0.285, allocations: 0 / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.757e-06/0.285, allocations: 0 / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.2851, allocations: 23.98 kB / 1.055 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.743e-06/0.2851, allocations: 3.938 kB / 1.055 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.934e-05/0.2852, allocations: 7.984 kB / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.256e-05/0.2852, allocations: 7.984 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2852, allocations: 3.938 kB / 1.055 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.273e-06/0.2852, allocations: 0 / 1.055 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.2852, allocations: 0 / 1.055 GB, free: 6.445 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.000314/0.2856, allocations: 319.6 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.2856, allocations: 15.97 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.425e-05/0.2856, allocations: 4.938 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.2858, allocations: 160.4 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.2858, allocations: 4.375 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.2858, allocations: 384 / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001044/0.2859, allocations: 42 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.2859, allocations: 4 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-06/0.2859, allocations: 0 / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.2859, allocations: 0 / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.692e-05/0.286, allocations: 4 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001617/0.2862, allocations: 157.6 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001855/0.2863, allocations: 34.61 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.972e-05/0.2864, allocations: 12.8 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001367/0.2865, allocations: 81.11 kB / 1.055 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.2866, allocations: 38.48 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.2866, allocations: 0 / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.004311/0.2909, allocations: 0.5718 MB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.2909, allocations: 55.41 kB / 1.056 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.822e-05/0.291, allocations: 97.84 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.291, allocations: 29.7 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.744e-05/0.291, allocations: 80.14 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.806e-05/0.2911, allocations: 7.812 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.722e-05/0.2911, allocations: 21.72 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.2913, allocations: 322.7 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000605/0.2919, allocations: 87.95 kB / 1.057 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005899/0.2925, allocations: 98.53 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.2937, allocations: 186.5 kB / 1.057 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.2937, allocations: 0 / 1.057 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001226/0.2949, allocations: 217.5 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.2949, allocations: 5.562 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.295, allocations: 7.938 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.295, allocations: 0 / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004003/0.2954, allocations: 52 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.2954, allocations: 4 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003298/0.2957, allocations: 35.98 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.2958, allocations: 7.984 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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.708e-05/0.2958, allocations: 109.8 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.019e-05/0.2959, allocations: 3.938 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001351/0.2972, allocations: 241 kB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2972, allocations: 0 / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.2972, allocations: 4 kB / 1.058 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.2973, allocations: 0 / 1.058 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.2988, allocations: 462.6 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2988, allocations: 0 / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/0.2992, allocations: 51.91 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2992, allocations: 0 / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.2992, allocations: 0 / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2992, allocations: 8 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2992, allocations: 7.922 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.3005, allocations: 295.4 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.281e-05/0.3005, allocations: 85.09 kB / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.3006, allocations: 4 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003579/0.3009, allocations: 35.98 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.749e-05/0.3009, allocations: 4 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.29e-05/0.301, allocations: 3.984 kB / 1.058 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.095e-05/0.301, allocations: 83.31 kB / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.301, allocations: 0 / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002512/0.3013, allocations: 12 kB / 1.059 GB, free: 1.984 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 (5): * Single equations (assignments): 5 * 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.0001981/0.3015, allocations: 107.2 kB / 1.059 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001236/0.3027, allocations: 179.9 kB / 1.059 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3027, allocations: 4 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005601/0.3033, allocations: 92.02 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.3035, allocations: 4 kB / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.3046, allocations: 242.8 kB / 1.059 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.3049, allocations: 0.6809 MB / 1.06 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.79e-05/0.305, allocations: 11.44 kB / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of SimCode: time 3.81e-07/0.305, allocations: 0 / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of Templates: time 0.002453/0.3075, allocations: 1.093 MB / 1.061 GB, free: 15.52 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches