Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside") translateModel(Buildings.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothHeaviside.y",fileNamePrefix="Buildings_latest_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.0009056/0.0009056, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.0008877/0.0008878, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 223.3 MB / 240 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.825/2.825, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003766/0.0003766, allocations: 8.469 kB / 0.9021 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.3998, allocations: 159.6 MB / 1.058 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.001641/0.4015, allocations: 1.156 MB / 1.059 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007082/0.4022, allocations: 459.1 kB / 1.06 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.684e-05/0.4023, allocations: 0 / 1.06 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.493e-05/0.4023, allocations: 0 / 1.06 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.627e-05/0.4024, allocations: 7.984 kB / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/0.4026, allocations: 15.88 kB / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.837e-05/0.4027, allocations: 23.92 kB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.4029, allocations: 7.984 kB / 1.06 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.588e-05/0.403, allocations: 8 kB / 1.06 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.056e-05/0.403, allocations: 15.92 kB / 1.06 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.422e-05/0.4031, allocations: 0 / 1.06 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.886e-05/0.4032, allocations: 19.97 kB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.07e-05/0.4032, allocations: 3.938 kB / 1.06 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.328e-05/0.4032, allocations: 29.7 kB / 1.06 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.477e-05/0.4033, allocations: 15.97 kB / 1.06 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.126e-06/0.4033, allocations: 4 kB / 1.06 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.945e-06/0.4033, allocations: 0 / 1.06 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.4034, allocations: 0 / 1.06 GB, free: 3.535 MB / 0.8106 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.0005673/0.4039, allocations: 343.6 kB / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/0.404, allocations: 8.031 kB / 1.06 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.498e-05/0.404, allocations: 11.84 kB / 1.06 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.4042, allocations: 167.1 kB / 1.06 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.4043, allocations: 0 / 1.06 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.806e-05/0.4043, allocations: 7.953 kB / 1.06 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002236/0.4045, allocations: 61.61 kB / 1.06 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.4045, allocations: 0 / 1.06 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.4046, allocations: 0 / 1.06 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.4046, allocations: 0 / 1.06 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001841/0.4048, allocations: 47.97 kB / 1.06 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000388/0.4051, allocations: 252.9 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.4053, allocations: 42.56 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.741e-05/0.4054, allocations: 32.84 kB / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001484/0.4055, allocations: 89.08 kB / 1.061 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.4056, allocations: 30.56 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.4056, allocations: 4 kB / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003718/0.406, allocations: 97.64 kB / 1.061 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.406, allocations: 51.41 kB / 1.061 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.664e-05/0.4061, allocations: 105.8 kB / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.4062, allocations: 29.64 kB / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.075e-05/0.4062, allocations: 80.27 kB / 1.061 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.4062, allocations: 11.91 kB / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-06/0.4063, allocations: 0 / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.4064, allocations: 314.8 kB / 1.061 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.189e-05/0.4065, allocations: 23.92 kB / 1.061 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.138e-05/0.4066, allocations: 27.97 kB / 1.061 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.825e-05/0.4067, allocations: 23.94 kB / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.4067, allocations: 4 kB / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001936/0.4069, allocations: 81.62 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.4069, allocations: 4 kB / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.4069, allocations: 0 / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.4069, allocations: 0 / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.407, allocations: 11.98 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.407, allocations: 0 / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.432e-05/0.4071, allocations: 11.94 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-06/0.4071, allocations: 4.031 kB / 1.062 GB, free: 1.359 MB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.4072, allocations: 117.8 kB / 1.062 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.425e-05/0.4072, allocations: 0 / 1.062 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002457/0.4075, allocations: 88.7 kB / 1.062 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.4075, allocations: 0 / 1.062 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.4075, allocations: 0 / 1.062 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.4075, allocations: 0 / 1.062 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.4077, allocations: 157.7 kB / 1.062 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.4077, allocations: 7.891 kB / 1.062 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.027e-05/0.4078, allocations: 15.98 kB / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.4078, allocations: 0 / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.4078, allocations: 0 / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.4078, allocations: 0 / 1.062 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4078, allocations: 4.031 kB / 1.062 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000233/0.4081, allocations: 171.5 kB / 1.062 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.96e-05/0.4081, allocations: 84.97 kB / 1.062 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.4081, allocations: 8.016 kB / 1.062 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.306e-05/0.4082, allocations: 12 kB / 1.062 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.198e-05/0.4083, allocations: 4.234 kB / 1.062 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.4083, allocations: 0 / 1.062 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.452e-05/0.4084, allocations: 87.22 kB / 1.062 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4084, allocations: 0 / 1.062 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002307/0.4086, allocations: 8 kB / 1.062 GB, free: 0.5117 MB / 0.8106 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002475/0.4088, allocations: 103.2 kB / 1.062 GB, free: 408 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002315/0.4091, allocations: 47.95 kB / 1.062 GB, free: 360 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4091, allocations: 0 / 1.062 GB, free: 360 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.282e-05/0.4092, allocations: 27.98 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.4096, allocations: 8 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003265/0.4099, allocations: 104.7 kB / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.4103, allocations: 0.677 MB / 1.063 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.327e-05/0.4103, allocations: 4.062 kB / 1.063 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.298e-05/0.4104, allocations: 11.44 kB / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.4104, allocations: 0 / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of Templates: time 0.003142/0.4135, allocations: 483.9 kB / 1.064 GB, free: 15 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothHeaviside.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches