Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_10_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.001648/0.001648, allocations: 106.3 kB / 16.27 MB, free: 6.406 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.001865/0.001866, allocations: 191.1 kB / 17.2 MB, free: 5.969 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.475/1.475, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.591/2.591, allocations: 437.1 MB / 0.7111 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 72.47 kB / 0.8699 GB, free: 2.199 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3156, allocations: 151.6 MB / 1.018 GB, free: 10.63 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.00265/0.3183, allocations: 1.433 MB / 1.019 GB, free: 9.188 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007733/0.3191, allocations: 469.2 kB / 1.02 GB, free: 8.723 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.141e-05/0.3192, allocations: 0 / 1.02 GB, free: 8.723 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.435e-05/0.3192, allocations: 3.938 kB / 1.02 GB, free: 8.719 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.918e-05/0.3193, allocations: 7.922 kB / 1.02 GB, free: 8.711 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002052/0.3195, allocations: 19.98 kB / 1.02 GB, free: 8.691 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.143e-05/0.3196, allocations: 23.92 kB / 1.02 GB, free: 8.668 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.931e-05/0.3197, allocations: 15.98 kB / 1.02 GB, free: 8.652 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.965e-05/0.3197, allocations: 15.86 kB / 1.02 GB, free: 8.637 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.52e-05/0.3198, allocations: 7.984 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.3198, allocations: 4 kB / 1.02 GB, free: 8.625 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.692e-05/0.3199, allocations: 19.97 kB / 1.02 GB, free: 8.605 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.57e-05/0.3199, allocations: 11.94 kB / 1.02 GB, free: 8.594 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.092e-05/0.3199, allocations: 7.938 kB / 1.02 GB, free: 8.586 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 9.75e-05/0.32, allocations: 31.95 kB / 1.02 GB, free: 8.555 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.32, allocations: 3.938 kB / 1.02 GB, free: 8.551 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.122e-06/0.32, allocations: 4 kB / 1.02 GB, free: 8.547 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.32, allocations: 4 kB / 1.02 GB, free: 8.543 MB / 0.795 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.0004559/0.3205, allocations: 339.7 kB / 1.02 GB, free: 8.164 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.3205, allocations: 12.92 kB / 1.02 GB, free: 8.152 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.896e-05/0.3206, allocations: 0.9375 kB / 1.02 GB, free: 8.152 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.3207, allocations: 176.2 kB / 1.021 GB, free: 7.941 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.3207, allocations: 4.375 kB / 1.021 GB, free: 7.938 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.21e-05/0.3207, allocations: 384 / 1.021 GB, free: 7.938 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.3209, allocations: 57.98 kB / 1.021 GB, free: 7.875 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.321, allocations: 0 / 1.021 GB, free: 7.875 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.335e-06/0.321, allocations: 0 / 1.021 GB, free: 7.875 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.321, allocations: 0 / 1.021 GB, free: 7.875 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000162/0.3211, allocations: 35.95 kB / 1.021 GB, free: 7.84 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003255/0.3215, allocations: 244.9 kB / 1.021 GB, free: 7.551 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001355/0.3216, allocations: 46.53 kB / 1.021 GB, free: 7.496 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.671e-05/0.3217, allocations: 24.91 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001312/0.3218, allocations: 81.09 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.3219, allocations: 34.56 kB / 1.021 GB, free: 7.328 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3219, allocations: 0 / 1.021 GB, free: 7.328 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0003556/0.3223, allocations: 93.48 kB / 1.021 GB, free: 7.23 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.3223, allocations: 51.41 kB / 1.021 GB, free: 7.168 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.767e-05/0.3224, allocations: 97.86 kB / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.3224, allocations: 25.7 kB / 1.021 GB, free: 7.031 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.753e-05/0.3225, allocations: 92.12 kB / 1.021 GB, free: 6.938 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.3225, allocations: 3.906 kB / 1.021 GB, free: 6.934 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-05/0.3225, allocations: 13.72 kB / 1.021 GB, free: 6.914 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3227, allocations: 315 kB / 1.022 GB, free: 6.598 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.081e-05/0.3227, allocations: 15.98 kB / 1.022 GB, free: 6.582 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.733e-05/0.3228, allocations: 19.97 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.323, allocations: 40.77 kB / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.323, allocations: 0 / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001896/0.3232, allocations: 73.66 kB / 1.022 GB, free: 6.441 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.3232, allocations: 8 kB / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3232, allocations: 0 / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.3232, allocations: 0 / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.148e-05/0.3233, allocations: 7.984 kB / 1.022 GB, free: 6.426 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.3233, allocations: 0 / 1.022 GB, free: 6.426 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.507e-05/0.3234, allocations: 7.938 kB / 1.022 GB, free: 6.418 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.3234, allocations: 4 kB / 1.022 GB, free: 6.414 MB / 0.795 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 9.172e-05/0.3235, allocations: 117.8 kB / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.553e-05/0.3235, allocations: 7.922 kB / 1.022 GB, free: 6.281 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002218/0.3237, allocations: 72.72 kB / 1.022 GB, free: 6.203 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3238, allocations: 0 / 1.022 GB, free: 6.203 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.3238, allocations: 3.938 kB / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.3238, allocations: 0 / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.3239, allocations: 165.6 kB / 1.022 GB, free: 5.988 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.324, allocations: 3.984 kB / 1.022 GB, free: 5.984 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.414e-05/0.324, allocations: 8.25 kB / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.324, allocations: 0 / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.914e-06/0.324, allocations: 4 kB / 1.022 GB, free: 5.973 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.324, allocations: 4 kB / 1.022 GB, free: 5.969 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.324, allocations: 0 / 1.022 GB, free: 5.969 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002397/0.3243, allocations: 167.4 kB / 1.022 GB, free: 5.789 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.393e-05/0.3243, allocations: 81.09 kB / 1.022 GB, free: 5.691 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.173e-05/0.3244, allocations: 0 / 1.022 GB, free: 5.691 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.343e-05/0.3244, allocations: 8 kB / 1.022 GB, free: 5.684 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.3245, allocations: 7.969 kB / 1.022 GB, free: 5.676 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.3245, allocations: 4 kB / 1.022 GB, free: 5.672 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.663e-05/0.3245, allocations: 79.28 kB / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.024e-06/0.3246, allocations: 0 / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002117/0.3248, allocations: 11.97 kB / 1.023 GB, free: 5.582 MB / 0.795 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.0001436/0.3249, allocations: 107.2 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002055/0.3251, allocations: 35.95 kB / 1.023 GB, free: 5.434 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3251, allocations: 0 / 1.023 GB, free: 5.434 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.367e-05/0.3252, allocations: 15.98 kB / 1.023 GB, free: 5.418 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002626/0.3255, allocations: 20.05 kB / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002714/0.3258, allocations: 119.3 kB / 1.023 GB, free: 5.25 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.3261, allocations: 0.6844 MB / 1.024 GB, free: 4.539 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.065e-05/0.3261, allocations: 7.438 kB / 1.024 GB, free: 4.531 MB / 0.795 GB Notification: Performance of SimCode: time 2.01e-07/0.3261, allocations: 0 / 1.024 GB, free: 4.531 MB / 0.795 GB Notification: Performance of Templates: time 0.002099/0.3282, allocations: 0.662 MB / 1.024 GB, free: 3.871 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches