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.008434/0.008434, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001398/0.001398, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.541/1.541, allocations: 222.9 MB / 240.4 MB, free: 4.309 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.577/2.577, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001557, allocations: 59.91 kB / 0.9508 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4491/0.4506, allocations: 140.4 MB / 1.088 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.004149/0.4549, allocations: 1.431 MB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001443/0.4563, allocations: 469.2 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.708e-05/0.4564, allocations: 4 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.817e-05/0.4565, allocations: 3.938 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.4567, allocations: 7.938 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003151/0.457, allocations: 27.91 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.4571, allocations: 20 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.4573, allocations: 7.984 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.4574, allocations: 15.88 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.345e-05/0.4575, allocations: 11.97 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.4575, allocations: 4 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001171/0.4576, allocations: 19.98 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.047e-05/0.4577, allocations: 7.938 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.355e-05/0.4577, allocations: 11.92 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.4579, allocations: 31.95 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.4579, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.164e-06/0.4579, allocations: 3.938 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.4579, allocations: 0 / 1.09 GB, free: 15.37 MB / 0.8575 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.0006709/0.4586, allocations: 347.3 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.4587, allocations: 16.03 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.783e-05/0.4587, allocations: 0.9375 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001627/0.4589, allocations: 168.4 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.4589, allocations: 384 / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.691e-05/0.4589, allocations: 384 / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.4591, allocations: 53.98 kB / 1.09 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.4592, allocations: 0 / 1.09 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.4592, allocations: 0 / 1.09 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.4592, allocations: 0 / 1.09 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.4594, allocations: 39.95 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004684/0.4598, allocations: 264.8 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001434/0.46, allocations: 34.56 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.892e-05/0.4601, allocations: 20.91 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001821/0.4603, allocations: 89.09 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.4603, allocations: 34.56 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.4603, allocations: 0 / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003946/0.4607, allocations: 81.58 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.4608, allocations: 51.41 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.4609, allocations: 106 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.461, allocations: 29.7 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.725e-05/0.4611, allocations: 84.14 kB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.4611, allocations: 11.78 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.925e-05/0.4611, allocations: 13.72 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4613, allocations: 314.8 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.008e-05/0.4614, allocations: 15.97 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.108e-05/0.4615, allocations: 23.98 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.4616, allocations: 40.77 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.4616, allocations: 0 / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001936/0.4618, allocations: 65.59 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.4619, allocations: 8 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.4619, allocations: 0 / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.4619, allocations: 8.031 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.462, allocations: 7.984 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.462, allocations: 7.984 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.458e-05/0.4621, allocations: 3.984 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.4621, allocations: 4 kB / 1.092 GB, free: 13.22 MB / 0.8575 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 0.0001083/0.4622, allocations: 113.8 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.4623, allocations: 4 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002732/0.4625, allocations: 80.62 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.4625, allocations: 0 / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.4626, allocations: 0 / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.4626, allocations: 0 / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001872/0.4628, allocations: 165.6 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.4628, allocations: 0 / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.056e-05/0.4628, allocations: 7.984 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.4629, allocations: 0 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.4629, allocations: 4 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4629, allocations: 4.031 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.4629, allocations: 0 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000252/0.4632, allocations: 163.5 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.11e-05/0.4632, allocations: 77.36 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.4632, allocations: 0 / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.497e-05/0.4633, allocations: 16.02 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.389e-05/0.4634, allocations: 3.938 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.4634, allocations: 4 kB / 1.092 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.196e-05/0.4634, allocations: 83.28 kB / 1.092 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4634, allocations: 0 / 1.092 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000225/0.4637, allocations: 4 kB / 1.092 GB, free: 12.41 MB / 0.8575 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.000213/0.4639, allocations: 103.8 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002252/0.4641, allocations: 35.97 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4641, allocations: 0 / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.108e-05/0.4642, allocations: 23.97 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003452/0.4646, allocations: 11.88 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004042/0.465, allocations: 113.5 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.4654, allocations: 0.6768 MB / 1.093 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.985e-05/0.4655, allocations: 8.062 kB / 1.093 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.394e-05/0.4655, allocations: 11.44 kB / 1.093 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.4655, allocations: 0 / 1.093 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of Templates: time 0.003292/0.4688, allocations: 0.569 MB / 1.094 GB, free: 10.8 MB / 0.8575 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