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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001636/0.001636, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001897/0.001897, allocations: 194 kB / 16.14 MB, free: 6.652 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.45/1.45, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.701/2.701, allocations: 461.8 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001248, allocations: 66.55 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3205, allocations: 157.4 MB / 1.052 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002385/0.323, allocations: 1.506 MB / 1.054 GB, free: 7.32 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007058/0.3237, allocations: 486.7 kB / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.237e-05/0.3237, allocations: 0 / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.602e-05/0.3238, allocations: 0 / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.81e-05/0.3239, allocations: 0 / 1.054 GB, free: 6.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001614/0.324, allocations: 19.92 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.293e-05/0.3241, allocations: 23.92 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.395e-05/0.3242, allocations: 7.984 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.402e-05/0.3242, allocations: 15.92 kB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.85e-05/0.3243, allocations: 8 kB / 1.054 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.3243, allocations: 4 kB / 1.054 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.698e-05/0.3244, allocations: 23.97 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.211e-05/0.3244, allocations: 3.938 kB / 1.054 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.725e-05/0.3244, allocations: 7.938 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.693e-05/0.3245, allocations: 39.88 kB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3245, allocations: 0 / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.22e-07/0.3245, allocations: 0 / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.77e-06/0.3246, allocations: 0 / 1.054 GB, free: 6.688 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.0003993/0.325, allocations: 341.1 kB / 1.054 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.325, allocations: 19.97 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.597e-05/0.325, allocations: 0.9375 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.3251, allocations: 160.4 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.616e-06/0.3252, allocations: 8.375 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.3252, allocations: 4.359 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.3253, allocations: 53.98 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.3254, allocations: 0 / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-06/0.3254, allocations: 0 / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.3254, allocations: 0 / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/0.3256, allocations: 43.89 kB / 1.055 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003022/0.3259, allocations: 244.9 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.326, allocations: 38.55 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.3261, allocations: 28.91 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.3262, allocations: 81.11 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.3263, allocations: 34.55 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.3263, allocations: 0 / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003568/0.3266, allocations: 85.5 kB / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.3267, allocations: 55.52 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.853e-05/0.3268, allocations: 105.8 kB / 1.055 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.3268, allocations: 29.7 kB / 1.055 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.376e-05/0.3268, allocations: 80.14 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.623e-05/0.3268, allocations: 7.891 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.215e-05/0.3269, allocations: 17.72 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.324e-05/0.327, allocations: 310.8 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.113e-05/0.3271, allocations: 15.98 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.633e-05/0.3272, allocations: 19.98 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.3273, allocations: 44.75 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3273, allocations: 0 / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001933/0.3275, allocations: 69.59 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.3275, allocations: 12.09 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.3276, allocations: 0 / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.3276, allocations: 0 / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.964e-05/0.3277, allocations: 4 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.3277, allocations: 4 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.414e-05/0.3278, allocations: 7.922 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.3278, allocations: 7.938 kB / 1.056 GB, free: 4.551 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 6.734e-05/0.3278, allocations: 109.8 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.441e-05/0.3279, allocations: 0 / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002285/0.3281, allocations: 84.7 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3281, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3281, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.3281, allocations: 256 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.3283, allocations: 161.6 kB / 1.056 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3283, allocations: 4 kB / 1.056 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.924e-05/0.3284, allocations: 7.984 kB / 1.056 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3284, allocations: 4.031 kB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.3284, allocations: 4 kB / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3284, allocations: 0 / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3284, allocations: 0 / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002396/0.3286, allocations: 167.4 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.156e-05/0.3287, allocations: 81.05 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.3287, allocations: 32 / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.899e-05/0.3288, allocations: 11.98 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.624e-05/0.3288, allocations: 0 / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.3288, allocations: 4 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.106e-05/0.3289, allocations: 87.27 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3289, allocations: 0 / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002292/0.3291, allocations: 4 kB / 1.057 GB, free: 3.738 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.00013/0.3293, allocations: 103.2 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002056/0.3295, allocations: 39.95 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3295, allocations: 3.938 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.573e-05/0.3296, allocations: 19.98 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.3299, allocations: 7.938 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00024/0.3301, allocations: 119.3 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.3303, allocations: 0.677 MB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.785e-05/0.3304, allocations: 4 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.778e-05/0.3304, allocations: 7.438 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.3304, allocations: 0 / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of Templates: time 0.002421/0.3328, allocations: 498 kB / 1.058 GB, free: 2.215 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches