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.001494/0.001494, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001784/0.001784, allocations: 193.1 kB / 16.14 MB, free: 6.711 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.457/1.457, allocations: 222.9 MB / 239.8 MB, free: 4.625 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.457/2.457, allocations: 390.2 MB / 0.6642 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001254, allocations: 59.91 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8867/0.888, allocations: 140.4 MB / 0.9489 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002809/0.8909, allocations: 1.501 MB / 0.9504 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007537/0.8916, allocations: 459.2 kB / 0.9508 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.725e-05/0.8917, allocations: 0 / 0.9508 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.484e-05/0.8917, allocations: 7.875 kB / 0.9508 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.184e-05/0.8918, allocations: 1.375 kB / 0.9508 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001882/0.892, allocations: 22.8 kB / 0.9508 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.419e-05/0.8921, allocations: 21.61 kB / 0.9509 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.995e-05/0.8922, allocations: 6.75 kB / 0.9509 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.952e-05/0.8923, allocations: 19.98 kB / 0.9509 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.421e-05/0.8923, allocations: 16.09 kB / 0.9509 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.8923, allocations: 1.375 kB / 0.9509 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.04e-05/0.8924, allocations: 16.23 kB / 0.9509 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.642e-05/0.8924, allocations: 5.312 kB / 0.9509 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.971e-05/0.8925, allocations: 9.312 kB / 0.9509 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.8926, allocations: 29.56 kB / 0.951 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.8926, allocations: 0 / 0.951 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.8926, allocations: 0 / 0.951 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.8926, allocations: 0 / 0.951 GB, free: 7.457 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.0005104/0.8931, allocations: 344.7 kB / 0.9513 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.8932, allocations: 9.188 kB / 0.9513 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.571e-05/0.8933, allocations: 6.469 kB / 0.9513 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.8934, allocations: 177.6 kB / 0.9515 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.8934, allocations: 2 kB / 0.9515 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.8934, allocations: 384 / 0.9515 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001977/0.8936, allocations: 53.89 kB / 0.9515 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.8936, allocations: 4 kB / 0.9515 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.8937, allocations: 1.219 kB / 0.9515 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.8937, allocations: 3.984 kB / 0.9515 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.8938, allocations: 34.83 kB / 0.9516 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003547/0.8942, allocations: 254.1 kB / 0.9518 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.8944, allocations: 42.69 kB / 0.9519 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.376e-05/0.8944, allocations: 23.88 kB / 0.9519 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001321/0.8946, allocations: 83.91 kB / 0.952 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.8946, allocations: 32.12 kB / 0.952 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.8946, allocations: 0 / 0.952 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003932/0.895, allocations: 88.45 kB / 0.9521 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/0.8951, allocations: 52.5 kB / 0.9521 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.9e-05/0.8951, allocations: 100.2 kB / 0.9522 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.8952, allocations: 25.7 kB / 0.9522 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.776e-05/0.8952, allocations: 89.27 kB / 0.9523 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.8952, allocations: 9.328 kB / 0.9523 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/0.8953, allocations: 12.22 kB / 0.9524 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.262e-05/0.8953, allocations: 315 kB / 0.9527 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.202e-05/0.8954, allocations: 18.05 kB / 0.9527 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.978e-05/0.8955, allocations: 17.81 kB / 0.9527 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.8957, allocations: 47.23 kB / 0.9527 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.8957, allocations: 0 / 0.9527 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001764/0.8958, allocations: 77.78 kB / 0.9528 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.8959, allocations: 3.875 kB / 0.9528 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.8959, allocations: 1.469 kB / 0.9528 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.8959, allocations: 0 / 0.9528 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.561e-05/0.896, allocations: 9.672 kB / 0.9528 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.896, allocations: 1.469 kB / 0.9528 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.264e-05/0.8961, allocations: 3.188 kB / 0.9528 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.8961, allocations: 1.625 kB / 0.9528 GB, free: 5.527 MB / 0.7169 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 6.803e-05/0.8962, allocations: 115.2 kB / 0.9529 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.245e-05/0.8962, allocations: 5.25 kB / 0.9529 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002233/0.8964, allocations: 78.14 kB / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.8964, allocations: 1.312 kB / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.8964, allocations: 0 / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.8964, allocations: 1.844 kB / 0.953 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.8966, allocations: 157.4 kB / 0.9532 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.8966, allocations: 4.031 kB / 0.9532 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.544e-05/0.8966, allocations: 11.08 kB / 0.9532 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.8966, allocations: 0 / 0.9532 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.8967, allocations: 0 / 0.9532 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.574e-06/0.8967, allocations: 1.719 kB / 0.9532 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8967, allocations: 0 / 0.9532 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002298/0.8969, allocations: 166.5 kB / 0.9533 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.061e-05/0.8969, allocations: 81.98 kB / 0.9534 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.8969, allocations: 5.359 kB / 0.9534 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.132e-05/0.897, allocations: 7.844 kB / 0.9534 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.8971, allocations: 5.359 kB / 0.9534 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.8971, allocations: 5.312 kB / 0.9534 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.836e-05/0.8971, allocations: 82.75 kB / 0.9535 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8971, allocations: 0 / 0.9535 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002188/0.8973, allocations: 10.38 kB / 0.9535 GB, free: 4.781 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 (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.0001567/0.8975, allocations: 102.1 kB / 0.9536 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002141/0.8977, allocations: 41.48 kB / 0.9537 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.8977, allocations: 0 / 0.9537 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.523e-05/0.8978, allocations: 14.98 kB / 0.9537 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003607/0.8982, allocations: 11.72 kB / 0.9537 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003387/0.8985, allocations: 119.7 kB / 0.9538 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001612/0.8987, allocations: 0.6812 MB / 0.9545 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.928e-05/0.8987, allocations: 5.406 kB / 0.9545 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.051e-05/0.8988, allocations: 8.688 kB / 0.9545 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.8988, allocations: 0 / 0.9545 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of Templates: time 0.002951/0.9017, allocations: 495.4 kB / 0.955 GB, free: 3.57 MB / 0.7169 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches