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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001211/0.001211, allocations: 199.6 kB / 16.26 MB, free: 6.621 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.251/1.251, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.127/2.127, allocations: 390.2 MB / 0.6644 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 59.91 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5436/0.5449, allocations: 140.4 MB / 0.9492 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001772/0.5468, allocations: 0.6469 MB / 0.9499 GB, free: 8.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001227/0.548, allocations: 1.094 MB / 0.9509 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.358e-05/0.548, allocations: 0 / 0.9509 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.727e-05/0.5481, allocations: 5.562 kB / 0.951 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.5483, allocations: 17.59 kB / 0.951 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.427e-06/0.5484, allocations: 1.625 kB / 0.951 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.513e-05/0.5484, allocations: 1.719 kB / 0.951 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.423e-05/0.5484, allocations: 13.67 kB / 0.951 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.417e-05/0.5485, allocations: 3.984 kB / 0.951 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.003e-05/0.5485, allocations: 1.719 kB / 0.951 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.456e-06/0.5485, allocations: 0 / 0.951 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.5486, allocations: 20.02 kB / 0.951 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.562e-06/0.5486, allocations: 1.656 kB / 0.951 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.362e-05/0.5486, allocations: 3.938 kB / 0.951 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.28e-05/0.5487, allocations: 20.31 kB / 0.951 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.5487, allocations: 1.344 kB / 0.951 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5487, allocations: 0 / 0.951 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.5487, allocations: 0 / 0.951 GB, free: 7.77 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.0002092/0.549, allocations: 316.3 kB / 0.9513 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.549, allocations: 14.41 kB / 0.9514 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.912e-05/0.549, allocations: 34.75 kB / 0.9514 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.681e-05/0.5491, allocations: 6.094 kB / 0.9514 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.551e-05/0.5491, allocations: 160.4 kB / 0.9515 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.5491, allocations: 5.625 kB / 0.9515 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.5492, allocations: 1.594 kB / 0.9516 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.903e-05/0.5492, allocations: 45.81 kB / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.5493, allocations: 0 / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-06/0.5493, allocations: 1.594 kB / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.5493, allocations: 0 / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.457e-05/0.5493, allocations: 8.172 kB / 0.9516 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.892e-05/0.5494, allocations: 148.7 kB / 0.9517 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001589/0.5496, allocations: 37.98 kB / 0.9518 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.794e-05/0.5496, allocations: 11.61 kB / 0.9518 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.5497, allocations: 83.94 kB / 0.9519 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.226e-05/0.5497, allocations: 39.81 kB / 0.9519 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.5497, allocations: 3.938 kB / 0.9519 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.004094/0.5538, allocations: 0.567 MB / 0.9525 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/0.5539, allocations: 51.41 kB / 0.9525 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.748e-05/0.5539, allocations: 95.17 kB / 0.9526 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.5539, allocations: 25.7 kB / 0.9526 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.009e-05/0.5539, allocations: 80.14 kB / 0.9527 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.554, allocations: 22.34 kB / 0.9527 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.867e-05/0.554, allocations: 21.73 kB / 0.9528 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.885e-05/0.5541, allocations: 312.4 kB / 0.953 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005482/0.5546, allocations: 82.95 kB / 0.9531 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000543/0.5552, allocations: 106.5 kB / 0.9532 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.5563, allocations: 187.4 kB / 0.9534 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.5563, allocations: 0 / 0.9534 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00113/0.5574, allocations: 218 kB / 0.9536 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.5575, allocations: 5.875 kB / 0.9536 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5575, allocations: 1.375 kB / 0.9536 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.5575, allocations: 432 / 0.9536 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003735/0.5579, allocations: 50.75 kB / 0.9537 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.5579, allocations: 1.156 kB / 0.9537 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003257/0.5582, allocations: 43.09 kB / 0.9537 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.5582, allocations: 6.5 kB / 0.9537 GB, free: 5.672 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 5.807e-05/0.5583, allocations: 110.8 kB / 0.9538 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.936e-05/0.5583, allocations: 5 kB / 0.9538 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001259/0.5596, allocations: 238.7 kB / 0.9541 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.5596, allocations: 1.156 kB / 0.9541 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5596, allocations: 0 / 0.9541 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.5596, allocations: 9.109 kB / 0.9541 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.5609, allocations: 457.8 kB / 0.9545 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.561, allocations: 1.188 kB / 0.9545 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003545/0.5613, allocations: 52.75 kB / 0.9546 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.5613, allocations: 0 / 0.9546 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.5613, allocations: 1.531 kB / 0.9546 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.5614, allocations: 5.406 kB / 0.9546 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.5614, allocations: 4 kB / 0.9546 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.5625, allocations: 310 kB / 0.9549 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.56e-05/0.5625, allocations: 77.11 kB / 0.9549 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.5625, allocations: 5.656 kB / 0.9549 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003414/0.5628, allocations: 37.98 kB / 0.955 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.26e-05/0.5629, allocations: 10.05 kB / 0.955 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.5629, allocations: 2.031 kB / 0.955 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.116e-05/0.5629, allocations: 79.28 kB / 0.9551 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/0.5629, allocations: 0 / 0.9551 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002342/0.5631, allocations: 10.09 kB / 0.9551 GB, free: 4.664 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.001349/0.5645, allocations: 0.8419 MB / 0.9559 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001137/0.5656, allocations: 181.5 kB / 0.9561 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5657, allocations: 0 / 0.9561 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005335/0.5662, allocations: 91.39 kB / 0.9562 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002064/0.5664, allocations: 5.375 kB / 0.9562 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.5676, allocations: 248.6 kB / 0.9564 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.066e-05/0.5677, allocations: 0.6762 MB / 0.9571 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0002191/0.5679, allocations: 33.55 kB / 0.9571 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.899e-05/0.568, allocations: 10.28 kB / 0.9571 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.568, allocations: 0 / 0.9571 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01117/0.5791, allocations: 1.532 MB / 0.9586 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000132/0.5793, allocations: 225.3 kB / 0.9588 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.521/2.1, allocations: 3.875 kB / 0.9588 GB, free: 1.934 MB / 0.7169 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y,der(y),der2_y Variables in the result:der(der_y),der(y),der2_y,der_y,time,y