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.001089/0.001089, allocations: 108 kB / 15.61 MB, free: 152 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.001045/0.001045, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.338/2.338, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 75.88 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.774/0.7753, allocations: 140.3 MB / 0.9496 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001641/0.777, allocations: 0.5925 MB / 0.9502 GB, free: 8.719 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009661/0.778, allocations: 1.108 MB / 0.9513 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.993e-05/0.7781, allocations: 0 / 0.9513 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.418e-05/0.7781, allocations: 0 / 0.9513 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.7783, allocations: 14.89 kB / 0.9513 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.027e-06/0.7783, allocations: 0 / 0.9513 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.687e-05/0.7783, allocations: 2.031 kB / 0.9513 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.525e-05/0.7784, allocations: 6.609 kB / 0.9513 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.225e-05/0.7784, allocations: 7.938 kB / 0.9513 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.039e-05/0.7784, allocations: 9.781 kB / 0.9513 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.7785, allocations: 0 / 0.9513 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.214e-05/0.7785, allocations: 16.45 kB / 0.9513 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.92e-06/0.7786, allocations: 0 / 0.9513 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.273e-05/0.7786, allocations: 5.312 kB / 0.9513 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.462e-05/0.7786, allocations: 20.41 kB / 0.9513 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.7787, allocations: 5.469 kB / 0.9513 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.7787, allocations: 0 / 0.9513 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.7787, allocations: 0 / 0.9513 GB, free: 7.762 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.000195/0.7789, allocations: 317.9 kB / 0.9516 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.7789, allocations: 10.03 kB / 0.9516 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.7789, allocations: 4.844 kB / 0.9517 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.649e-05/0.779, allocations: 165.6 kB / 0.9518 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.779, allocations: 384 / 0.9518 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.779, allocations: 5.594 kB / 0.9518 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.059e-05/0.7791, allocations: 35.39 kB / 0.9519 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.7791, allocations: 0 / 0.9519 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.7792, allocations: 0 / 0.9519 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.7792, allocations: 1.438 kB / 0.9519 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.536e-05/0.7792, allocations: 18.55 kB / 0.9519 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.125e-05/0.7793, allocations: 149.4 kB / 0.952 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.7795, allocations: 33.94 kB / 0.952 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.662e-05/0.7795, allocations: 7.953 kB / 0.9521 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.7796, allocations: 84.09 kB / 0.9521 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.302e-05/0.7796, allocations: 43.91 kB / 0.9522 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.7796, allocations: 0 / 0.9522 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.004162/0.7838, allocations: 0.5629 MB / 0.9527 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.7839, allocations: 59.34 kB / 0.9528 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.265e-05/0.7839, allocations: 89.86 kB / 0.9529 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.7839, allocations: 27.33 kB / 0.9529 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.944e-05/0.7839, allocations: 80.14 kB / 0.953 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.697e-05/0.784, allocations: 24.86 kB / 0.953 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.134e-05/0.784, allocations: 19.31 kB / 0.953 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.7e-05/0.7841, allocations: 314.8 kB / 0.9533 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006037/0.7847, allocations: 84.14 kB / 0.9534 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005923/0.7853, allocations: 107.3 kB / 0.9535 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.7865, allocations: 186 kB / 0.9537 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7865, allocations: 1.469 kB / 0.9537 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001187/0.7877, allocations: 221.7 kB / 0.9539 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.7877, allocations: 4.844 kB / 0.9539 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.7877, allocations: 1.5 kB / 0.9539 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.7877, allocations: 5.016 kB / 0.9539 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000411/0.7882, allocations: 49.19 kB / 0.9539 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.7882, allocations: 1.656 kB / 0.9539 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.7885, allocations: 39.17 kB / 0.954 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.7885, allocations: 2.25 kB / 0.954 GB, free: 5.711 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 6.831e-05/0.7886, allocations: 115.3 kB / 0.9541 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.036e-05/0.7886, allocations: 5.375 kB / 0.9541 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.79, allocations: 239.9 kB / 0.9543 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.79, allocations: 0 / 0.9543 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.79, allocations: 0 / 0.9543 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.79, allocations: 6.328 kB / 0.9543 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001385/0.7914, allocations: 456.6 kB / 0.9548 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.7914, allocations: 1.062 kB / 0.9548 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003651/0.7918, allocations: 52.91 kB / 0.9548 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.7918, allocations: 0 / 0.9548 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.7918, allocations: 1.094 kB / 0.9548 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.7918, allocations: 1.188 kB / 0.9548 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.7918, allocations: 0 / 0.9548 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.793, allocations: 309.7 kB / 0.9551 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.336e-05/0.7931, allocations: 82.39 kB / 0.9552 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.707e-05/0.7931, allocations: 5.25 kB / 0.9552 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003644/0.7935, allocations: 42.25 kB / 0.9552 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.947e-05/0.7935, allocations: 5.094 kB / 0.9552 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.7935, allocations: 6.312 kB / 0.9553 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.221e-05/0.7935, allocations: 75.28 kB / 0.9553 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7935, allocations: 0 / 0.9553 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002584/0.7938, allocations: 17.88 kB / 0.9553 GB, free: 4.699 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.0002132/0.794, allocations: 108.2 kB / 0.9554 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00127/0.7953, allocations: 181.7 kB / 0.9556 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.7953, allocations: 1.5 kB / 0.9556 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000589/0.7959, allocations: 94.84 kB / 0.9557 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002243/0.7962, allocations: 7.312 kB / 0.9557 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.7973, allocations: 208.6 kB / 0.9559 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.659e-05/0.7974, allocations: 0.6768 MB / 0.9566 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001989/0.7976, allocations: 32.11 kB / 0.9566 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.721e-05/0.7976, allocations: 14.19 kB / 0.9566 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of SimCode: time 4.91e-07/0.7976, allocations: 0 / 0.9566 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of Templates: time 0.002699/0.8003, allocations: 0.8115 MB / 0.9574 GB, free: 3.215 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