Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.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.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin") translateModel(Buildings.Utilities.Math.Examples.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00662/0.006625, allocations: 100.9 kB / 15.73 MB, free: 6.004 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.001306/0.001306, allocations: 193.5 kB / 16.67 MB, free: 5.922 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.492/1.492, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.27/2.27, allocations: 390.2 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 59.89 kB / 0.9508 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.164/1.165, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002808/1.168, allocations: 1.46 MB / 1.089 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0004103/1.169, allocations: 145.8 kB / 1.089 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.053e-05/1.169, allocations: 1.094 kB / 1.089 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.32e-05/1.169, allocations: 4.594 kB / 1.089 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.064e-05/1.169, allocations: 2.25 kB / 1.09 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002313/1.169, allocations: 28.72 kB / 1.09 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001055/1.169, allocations: 47.41 kB / 1.09 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/1.169, allocations: 17.48 kB / 1.09 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.668e-05/1.169, allocations: 20.55 kB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.94e-05/1.169, allocations: 22.28 kB / 1.09 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/1.169, allocations: 8.188 kB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.313e-05/1.17, allocations: 27.91 kB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.163e-05/1.17, allocations: 12.44 kB / 1.09 GB, free: 4.324 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.493e-05/1.17, allocations: 26.17 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001664/1.17, allocations: 65.38 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/1.17, allocations: 1.125 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.082e-06/1.17, allocations: 0 / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.312e-06/1.17, allocations: 0 / 1.09 GB, free: 4.281 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004134/1.17, allocations: 358.7 kB / 1.09 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/1.17, allocations: 13.72 kB / 1.09 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001216/1.171, allocations: 208.5 kB / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.621e-05/1.172, allocations: 176.1 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/1.172, allocations: 7.109 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.009e-05/1.172, allocations: 2.156 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006265/1.172, allocations: 199.6 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.475e-06/1.172, allocations: 4.688 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/1.172, allocations: 8.906 kB / 1.091 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/1.172, allocations: 1.062 kB / 1.091 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009469/1.173, allocations: 281.1 kB / 1.091 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009755/1.174, allocations: 428.5 kB / 1.091 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/1.176, allocations: 293.2 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000407/1.176, allocations: 101.6 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/1.176, allocations: 1.578 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/1.176, allocations: 32.5 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.673e-06/1.176, allocations: 0 / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.001359/1.177, allocations: 309.7 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/1.177, allocations: 52.84 kB / 1.092 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/1.178, allocations: 119.2 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/1.178, allocations: 25.7 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.324e-05/1.178, allocations: 100.2 kB / 1.092 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/1.178, allocations: 9.812 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.683e-05/1.178, allocations: 15.94 kB / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.429e-05/1.178, allocations: 322.3 kB / 1.093 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004127/1.178, allocations: 91.14 kB / 1.093 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004118/1.179, allocations: 100.7 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007391/1.179, allocations: 173.7 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/1.179, allocations: 1.25 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000814/1.18, allocations: 218.7 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/1.18, allocations: 6.672 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/1.18, allocations: 0 / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/1.18, allocations: 4.75 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002735/1.181, allocations: 37.08 kB / 1.093 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/1.181, allocations: 1 kB / 1.093 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/1.181, allocations: 30.59 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/1.181, allocations: 2.641 kB / 1.093 GB, free: 2.27 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 (3): * Single equations (assignments): 3 * 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 8.13e-05/1.181, allocations: 116.4 kB / 1.093 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.288e-05/1.181, allocations: 6.719 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.433e-05/1.181, allocations: 14.97 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/1.181, allocations: 1.062 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.181, allocations: 0.9375 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/1.181, allocations: 0.5156 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002265/1.181, allocations: 216.1 kB / 1.094 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/1.181, allocations: 1.547 kB / 1.094 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002418/1.182, allocations: 32.8 kB / 1.094 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/1.182, allocations: 0.7188 kB / 1.094 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/1.182, allocations: 1.281 kB / 1.094 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/1.182, allocations: 4.562 kB / 1.094 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.182, allocations: 1.406 kB / 1.094 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008338/1.182, allocations: 315.7 kB / 1.094 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.814e-05/1.182, allocations: 82.61 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/1.182, allocations: 1.641 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/1.183, allocations: 35.23 kB / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.479e-05/1.183, allocations: 2.859 kB / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.447e-06/1.183, allocations: 1.562 kB / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.988e-05/1.183, allocations: 93.56 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/1.183, allocations: 0 / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002428/1.183, allocations: 12.59 kB / 1.094 GB, free: 1.559 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 (3): * Single equations (assignments): 3 * 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.0001388/1.183, allocations: 107.4 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009021/1.184, allocations: 197.5 kB / 1.095 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/1.184, allocations: 4.906 kB / 1.095 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004472/1.185, allocations: 95.47 kB / 1.095 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/1.185, allocations: 7.344 kB / 1.095 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/1.186, allocations: 261.1 kB / 1.095 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000149/1.186, allocations: 0.6872 MB / 1.096 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.891e-05/1.186, allocations: 23.77 kB / 1.096 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.895e-05/1.186, allocations: 11.53 kB / 1.096 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/1.186, allocations: 0 / 1.096 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of Templates: time 0.004217/1.19, allocations: 0.9339 MB / 1.096 GB, free: 484 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches