Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Functions.Examples.SmoothHeavisideDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|der.y.|der2_y",fileNamePrefix="Buildings_9_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_9_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.001591/0.001591, 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.001723/0.001723, allocations: 193.2 kB / 16.14 MB, free: 6.648 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.464/1.464, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.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.606/2.606, allocations: 390.2 MB / 0.6642 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.91 kB / 0.8119 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8074/0.8089, allocations: 140.4 MB / 0.9489 GB, free: 9.289 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.00185/0.8108, allocations: 0.6513 MB / 0.9496 GB, free: 8.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001066/0.8119, allocations: 1.094 MB / 0.9506 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.18e-05/0.8119, allocations: 1.375 kB / 0.9506 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.742e-05/0.8119, allocations: 4 kB / 0.9506 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.8121, allocations: 18.86 kB / 0.9507 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 2.926e-06/0.8121, allocations: 0 / 0.9507 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.234e-05/0.8122, allocations: 5.312 kB / 0.9507 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.975e-05/0.8122, allocations: 5.375 kB / 0.9507 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.388e-05/0.8122, allocations: 5.312 kB / 0.9507 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.235e-05/0.8123, allocations: 5.359 kB / 0.9507 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.612e-06/0.8123, allocations: 0 / 0.9507 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.8124, allocations: 20.17 kB / 0.9507 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.154e-06/0.8124, allocations: 3.984 kB / 0.9507 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.531e-05/0.8124, allocations: 9.312 kB / 0.9507 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.112e-05/0.8125, allocations: 13.48 kB / 0.9507 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.8125, allocations: 0 / 0.9507 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.012e-06/0.8125, allocations: 0 / 0.9507 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.8125, allocations: 0 / 0.9507 GB, free: 7.844 MB / 0.7169 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.0001923/0.8127, allocations: 321.8 kB / 0.951 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.8127, allocations: 8.25 kB / 0.951 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.996e-05/0.8128, allocations: 10.31 kB / 0.951 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.037e-05/0.8128, allocations: 160.4 kB / 0.9512 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.928e-06/0.8128, allocations: 1.531 kB / 0.9512 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.8129, allocations: 5.844 kB / 0.9512 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.309e-05/0.813, allocations: 40.98 kB / 0.9512 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.813, allocations: 9.375 kB / 0.9513 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-06/0.813, allocations: 0 / 0.9513 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.813, allocations: 0 / 0.9513 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.103e-05/0.813, allocations: 8.969 kB / 0.9513 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.592e-05/0.8131, allocations: 152.3 kB / 0.9514 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001526/0.8133, allocations: 34.58 kB / 0.9514 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.707e-05/0.8133, allocations: 11.45 kB / 0.9514 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001117/0.8134, allocations: 81.36 kB / 0.9515 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.726e-05/0.8135, allocations: 38.44 kB / 0.9516 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.8135, allocations: 0 / 0.9516 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.004214/0.8177, allocations: 0.5659 MB / 0.9521 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.8177, allocations: 56.75 kB / 0.9522 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.016e-05/0.8177, allocations: 93.84 kB / 0.9523 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.8178, allocations: 31.05 kB / 0.9523 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.211e-05/0.8178, allocations: 80.14 kB / 0.9524 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.607e-05/0.8178, allocations: 24.95 kB / 0.9524 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.851e-05/0.8179, allocations: 18.41 kB / 0.9524 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.009e-05/0.8179, allocations: 316.1 kB / 0.9527 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005808/0.8185, allocations: 83.52 kB / 0.9528 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000609/0.8191, allocations: 102.3 kB / 0.9529 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.8203, allocations: 192 kB / 0.9531 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.8203, allocations: 0 / 0.9531 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001191/0.8215, allocations: 217.7 kB / 0.9533 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.8215, allocations: 5 kB / 0.9533 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.8215, allocations: 0.9375 kB / 0.9533 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.8215, allocations: 1.062 kB / 0.9533 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003778/0.8219, allocations: 51 kB / 0.9533 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.8219, allocations: 3.984 kB / 0.9533 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.8223, allocations: 39.14 kB / 0.9534 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.8223, allocations: 7.172 kB / 0.9534 GB, free: 5.777 MB / 0.7169 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 7.416e-05/0.8224, allocations: 110.9 kB / 0.9535 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.8224, allocations: 5.125 kB / 0.9535 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001299/0.8237, allocations: 239.3 kB / 0.9537 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.8237, allocations: 0 / 0.9537 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.8237, allocations: 1.375 kB / 0.9537 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.8237, allocations: 0 / 0.9537 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001359/0.8251, allocations: 458.9 kB / 0.9542 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.8251, allocations: 0 / 0.9542 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.8255, allocations: 53.19 kB / 0.9542 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.8255, allocations: 1.5 kB / 0.9542 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.8255, allocations: 0 / 0.9542 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.8255, allocations: 1.375 kB / 0.9542 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.8255, allocations: 4.422 kB / 0.9542 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.8268, allocations: 302.3 kB / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.048e-05/0.8268, allocations: 85 kB / 0.9546 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.8268, allocations: 9.312 kB / 0.9546 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003526/0.8272, allocations: 37.98 kB / 0.9546 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.012e-05/0.8272, allocations: 13.73 kB / 0.9546 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.8273, allocations: 5.766 kB / 0.9546 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.253e-05/0.8273, allocations: 75.28 kB / 0.9547 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8273, allocations: 4 kB / 0.9547 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002639/0.8276, allocations: 10.78 kB / 0.9547 GB, free: 4.77 MB / 0.7169 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.0002017/0.8278, allocations: 103.8 kB / 0.9548 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001287/0.8291, allocations: 181.2 kB / 0.955 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.8291, allocations: 0.5938 kB / 0.955 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0006266/0.8297, allocations: 96 kB / 0.9551 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/0.83, allocations: 3.297 kB / 0.9551 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.8312, allocations: 219.3 kB / 0.9553 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001322/0.8314, allocations: 0.6767 MB / 0.956 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002164/0.8316, allocations: 28.03 kB / 0.956 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.545e-05/0.8317, allocations: 9.375 kB / 0.956 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.8317, allocations: 2.031 kB / 0.956 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of Templates: time 0.003119/0.8348, allocations: 0.8041 MB / 0.9568 GB, free: 3.289 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches