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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00125/0.001251, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001342/0.001342, allocations: 172.7 kB / 15.95 MB, free: 208 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.493/1.493, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.419/2.419, allocations: 390.9 MB / 0.666 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003537/0.0003537, allocations: 12 kB / 0.8153 GB, free: 13.58 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7293/0.7297, allocations: 142.4 MB / 0.9544 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.001371/0.7311, allocations: 1.172 MB / 0.9556 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002911/0.7314, allocations: 134.9 kB / 0.9557 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.807e-05/0.7315, allocations: 0 / 0.9557 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.328e-05/0.7315, allocations: 7.938 kB / 0.9557 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.634e-05/0.7316, allocations: 1.531 kB / 0.9557 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000179/0.7317, allocations: 26.78 kB / 0.9557 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.375e-05/0.7318, allocations: 30.61 kB / 0.9558 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.69e-05/0.7319, allocations: 21.03 kB / 0.9558 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.618e-05/0.732, allocations: 16.81 kB / 0.9558 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.815e-05/0.732, allocations: 12.23 kB / 0.9558 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.216e-05/0.732, allocations: 1.875 kB / 0.9558 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.861e-05/0.7321, allocations: 30.78 kB / 0.9559 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.958e-06/0.7321, allocations: 4.953 kB / 0.9559 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.015e-05/0.7322, allocations: 36.64 kB / 0.9559 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.186e-05/0.7323, allocations: 47.39 kB / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.7323, allocations: 0 / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7323, allocations: 0 / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.7323, allocations: 1.156 kB / 0.9559 GB, free: 6.559 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003431/0.7326, allocations: 357.8 kB / 0.9563 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.7327, allocations: 9.625 kB / 0.9563 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009712/0.7336, allocations: 249.4 kB / 0.9565 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.754e-05/0.7337, allocations: 165.4 kB / 0.9567 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.7338, allocations: 1.094 kB / 0.9567 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.7338, allocations: 3.375 kB / 0.9567 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005151/0.7343, allocations: 214.8 kB / 0.9569 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.7343, allocations: 0 / 0.9569 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.7343, allocations: 1.562 kB / 0.9569 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.7343, allocations: 3.938 kB / 0.9569 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007891/0.7351, allocations: 322.1 kB / 0.9572 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007773/0.7359, allocations: 456.3 kB / 0.9576 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000976/0.7369, allocations: 351.5 kB / 0.958 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003187/0.7372, allocations: 118.7 kB / 0.9581 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.7373, allocations: 0 / 0.9581 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.7373, allocations: 35.94 kB / 0.9581 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.7373, allocations: 4 kB / 0.9581 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.001043/0.7384, allocations: 368.3 kB / 0.9585 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.519e-05/0.7384, allocations: 52.78 kB / 0.9585 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.235e-05/0.7385, allocations: 117.1 kB / 0.9586 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.7385, allocations: 29.7 kB / 0.9587 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.069e-05/0.7385, allocations: 90.89 kB / 0.9588 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.7386, allocations: 9.266 kB / 0.9588 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.265e-06/0.7386, allocations: 3.938 kB / 0.9588 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.248e-05/0.7386, allocations: 316.2 kB / 0.9591 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003419/0.739, allocations: 111.7 kB / 0.9592 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003109/0.7393, allocations: 116.7 kB / 0.9593 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.7396, allocations: 102.5 kB / 0.9594 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.7396, allocations: 0 / 0.9594 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007057/0.7403, allocations: 258.2 kB / 0.9596 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.7403, allocations: 10.91 kB / 0.9596 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.7404, allocations: 336 / 0.9596 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.7404, allocations: 1.125 kB / 0.9596 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002379/0.7406, allocations: 38.61 kB / 0.9597 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.7406, allocations: 5 kB / 0.9597 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.7408, allocations: 42.56 kB / 0.9597 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.7408, allocations: 0.9688 kB / 0.9597 GB, free: 3.809 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 (3): * Single equations (assignments): 3 * 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 9.365e-05/0.7409, allocations: 118.9 kB / 0.9598 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.414e-05/0.741, allocations: 14.03 kB / 0.9599 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.111e-05/0.741, allocations: 14.64 kB / 0.9599 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.741, allocations: 4 kB / 0.9599 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.7411, allocations: 1.094 kB / 0.9599 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.7411, allocations: 0 / 0.9599 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002075/0.7413, allocations: 208.7 kB / 0.9601 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.7413, allocations: 1.75 kB / 0.9601 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.7415, allocations: 46.66 kB / 0.9601 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.7415, allocations: 4 kB / 0.9601 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.7415, allocations: 4.797 kB / 0.9601 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.7416, allocations: 4.969 kB / 0.9601 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.7416, allocations: 0 / 0.9601 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007376/0.7423, allocations: 348.5 kB / 0.9605 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.238e-05/0.7423, allocations: 82.83 kB / 0.9605 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.7424, allocations: 5.047 kB / 0.9605 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.7426, allocations: 38.23 kB / 0.9606 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.037e-05/0.7426, allocations: 9.891 kB / 0.9606 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/0.7427, allocations: 1.062 kB / 0.9606 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.46e-05/0.7427, allocations: 93.52 kB / 0.9607 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7427, allocations: 3.938 kB / 0.9607 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002539/0.743, allocations: 11.94 kB / 0.9607 GB, free: 2.949 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 (3): * Single equations (assignments): 3 * 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.0001082/0.7431, allocations: 98.41 kB / 0.9608 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007161/0.7438, allocations: 236.6 kB / 0.961 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7438, allocations: 0 / 0.961 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003479/0.7442, allocations: 123.4 kB / 0.9611 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.7445, allocations: 1.531 kB / 0.9611 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000815/0.7453, allocations: 298.4 kB / 0.9614 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.7454, allocations: 0.688 MB / 0.9621 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.936e-05/0.7455, allocations: 20.27 kB / 0.9621 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.935e-05/0.7456, allocations: 14.11 kB / 0.9621 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.7456, allocations: 0 / 0.9621 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of Templates: time 0.002795/0.7484, allocations: 0.813 MB / 0.9629 GB, free: 1.355 MB / 0.7169 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