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.001683/0.001683, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001979/0.001979, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.424/1.424, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.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.342/2.342, allocations: 390.3 MB / 0.6653 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 72.02 kB / 0.8132 GB, free: 33.02 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.296, allocations: 140.4 MB / 0.9503 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003055/0.2991, allocations: 1.432 MB / 0.9517 GB, free: 7.449 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0008995/0.3001, allocations: 473.8 kB / 0.9521 GB, free: 6.98 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.401e-05/0.3001, allocations: 4 kB / 0.9521 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.959e-05/0.3002, allocations: 3.938 kB / 0.9521 GB, free: 6.973 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.19e-05/0.3003, allocations: 0 / 0.9521 GB, free: 6.973 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002287/0.3005, allocations: 23.92 kB / 0.9521 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.856e-05/0.3006, allocations: 23.92 kB / 0.9522 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.3007, allocations: 11.98 kB / 0.9522 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.57e-05/0.3008, allocations: 11.98 kB / 0.9522 GB, free: 6.902 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.57e-05/0.3009, allocations: 15.92 kB / 0.9522 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.3009, allocations: 0 / 0.9522 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.601e-05/0.301, allocations: 27.91 kB / 0.9522 GB, free: 6.859 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.276e-05/0.301, allocations: 0 / 0.9522 GB, free: 6.859 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.728e-05/0.301, allocations: 7.938 kB / 0.9522 GB, free: 6.852 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.3012, allocations: 39.88 kB / 0.9523 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3012, allocations: 0 / 0.9523 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3012, allocations: 0 / 0.9523 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.3012, allocations: 0 / 0.9523 GB, free: 6.812 MB / 0.7325 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.0004847/0.3017, allocations: 352.9 kB / 0.9526 GB, free: 6.422 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.3017, allocations: 8.031 kB / 0.9526 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.867e-05/0.3018, allocations: 4.844 kB / 0.9526 GB, free: 6.41 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.3019, allocations: 164.4 kB / 0.9528 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.3019, allocations: 4.312 kB / 0.9528 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.395e-06/0.3019, allocations: 384 / 0.9528 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.3021, allocations: 57.92 kB / 0.9528 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3021, allocations: 4 kB / 0.9528 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.3021, allocations: 0 / 0.9528 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.3022, allocations: 0 / 0.9528 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.3023, allocations: 35.95 kB / 0.9529 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003372/0.3027, allocations: 252.9 kB / 0.9531 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.3028, allocations: 50.44 kB / 0.9532 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.379e-05/0.3029, allocations: 16.91 kB / 0.9532 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.3031, allocations: 89.09 kB / 0.9533 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.3031, allocations: 30.56 kB / 0.9533 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.463e-06/0.3031, allocations: 0 / 0.9533 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0003656/0.3035, allocations: 85.55 kB / 0.9534 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.3036, allocations: 55.41 kB / 0.9534 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.93e-05/0.3036, allocations: 97.86 kB / 0.9535 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.3037, allocations: 25.7 kB / 0.9536 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.517e-05/0.3037, allocations: 88.12 kB / 0.9536 GB, free: 5.203 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.3037, allocations: 3.906 kB / 0.9536 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.602e-05/0.3038, allocations: 17.72 kB / 0.9537 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.3039, allocations: 318.9 kB / 0.954 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.45e-05/0.304, allocations: 15.98 kB / 0.954 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.682e-05/0.3041, allocations: 20.22 kB / 0.954 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.3042, allocations: 40.77 kB / 0.954 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.366e-05/0.3043, allocations: 4 kB / 0.954 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001975/0.3045, allocations: 69.72 kB / 0.9541 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3045, allocations: 4 kB / 0.9541 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3045, allocations: 0 / 0.9541 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3045, allocations: 0 / 0.9541 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.448e-05/0.3046, allocations: 11.98 kB / 0.9541 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3046, allocations: 3.938 kB / 0.9541 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.284e-05/0.3047, allocations: 11.94 kB / 0.9541 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.3047, allocations: 0 / 0.9541 GB, free: 4.668 MB / 0.7325 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 8.087e-05/0.3048, allocations: 119.8 kB / 0.9542 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.598e-05/0.3048, allocations: 4 kB / 0.9543 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002519/0.3051, allocations: 68.78 kB / 0.9543 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.3051, allocations: 0 / 0.9543 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.351e-06/0.3051, allocations: 4 kB / 0.9543 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3051, allocations: 0 / 0.9543 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.3053, allocations: 161.6 kB / 0.9545 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3053, allocations: 4.031 kB / 0.9545 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.786e-05/0.3054, allocations: 4 kB / 0.9545 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.3054, allocations: 7.938 kB / 0.9545 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.3054, allocations: 3.938 kB / 0.9545 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3054, allocations: 0 / 0.9545 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.3054, allocations: 7.922 kB / 0.9545 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.3057, allocations: 167.4 kB / 0.9547 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/0.3058, allocations: 81.09 kB / 0.9547 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.3058, allocations: 0 / 0.9547 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.512e-05/0.3059, allocations: 4 kB / 0.9547 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.3059, allocations: 11.97 kB / 0.9548 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/0.3059, allocations: 0 / 0.9548 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.76e-05/0.306, allocations: 83.28 kB / 0.9548 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.306, allocations: 0 / 0.9548 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000234/0.3062, allocations: 4 kB / 0.9548 GB, free: 3.848 MB / 0.7325 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.0002112/0.3064, allocations: 107.3 kB / 0.9549 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002325/0.3067, allocations: 39.91 kB / 0.955 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3067, allocations: 0 / 0.955 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.022e-05/0.3068, allocations: 19.98 kB / 0.955 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.3071, allocations: 10.11 kB / 0.955 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003466/0.3075, allocations: 135.3 kB / 0.9551 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.3077, allocations: 0.6766 MB / 0.9558 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.665e-05/0.3078, allocations: 15.44 kB / 0.9558 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of SimCode: time 3.2e-07/0.3078, allocations: 0 / 0.9558 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of Templates: time 0.002211/0.31, allocations: 0.6564 MB / 0.9565 GB, free: 2.133 MB / 0.7325 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches