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.001253/0.001253, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001495/0.001495, allocations: 192.4 kB / 16.25 MB, free: 6.16 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.467/1.467, allocations: 222.9 MB / 239.9 MB, free: 4.367 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.508/2.508, allocations: 390.2 MB / 0.6644 GB, free: 0.5078 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 67.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9178/0.9195, allocations: 140.4 MB / 0.9491 GB, free: 9.352 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.003107/0.9227, allocations: 1.521 MB / 0.9506 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003628/0.9231, allocations: 144 kB / 0.9507 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.608e-05/0.9231, allocations: 3.938 kB / 0.9507 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.042e-05/0.9232, allocations: 0 / 0.9507 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.324e-05/0.9232, allocations: 9.359 kB / 0.9507 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.9235, allocations: 25.27 kB / 0.9508 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.104e-05/0.9236, allocations: 40.75 kB / 0.9508 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.9237, allocations: 15.53 kB / 0.9508 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.302e-05/0.9237, allocations: 18.42 kB / 0.9508 GB, free: 7.977 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.318e-05/0.9238, allocations: 34 kB / 0.9509 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.419e-05/0.9238, allocations: 2.625 kB / 0.9509 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.782e-05/0.9239, allocations: 33.88 kB / 0.9509 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.56e-05/0.9239, allocations: 5.688 kB / 0.9509 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.957e-05/0.9239, allocations: 19.92 kB / 0.9509 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000132/0.9241, allocations: 60.83 kB / 0.951 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.9241, allocations: 0 / 0.951 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.395e-06/0.9241, allocations: 0 / 0.951 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.9241, allocations: 0 / 0.951 GB, free: 7.875 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.0004531/0.9246, allocations: 370.5 kB / 0.9513 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.9246, allocations: 9.375 kB / 0.9513 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001077/0.9257, allocations: 209.5 kB / 0.9515 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.13e-05/0.9258, allocations: 175 kB / 0.9517 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.9258, allocations: 1.75 kB / 0.9517 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.9258, allocations: 7.125 kB / 0.9517 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005228/0.9264, allocations: 191.4 kB / 0.9519 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.9264, allocations: 192 / 0.9519 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.9264, allocations: 9.156 kB / 0.9519 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.9264, allocations: 0 / 0.9519 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007571/0.9272, allocations: 284.6 kB / 0.9522 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00082/0.928, allocations: 460.2 kB / 0.9526 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.929, allocations: 285 kB / 0.9529 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000357/0.9294, allocations: 96.27 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.9295, allocations: 1.469 kB / 0.953 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.9295, allocations: 38.56 kB / 0.953 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.9295, allocations: 1.188 kB / 0.953 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.00114/0.9306, allocations: 310.3 kB / 0.9533 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.9307, allocations: 51.41 kB / 0.9534 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.285e-05/0.9308, allocations: 129.2 kB / 0.9535 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.9308, allocations: 25.7 kB / 0.9535 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.708e-05/0.9308, allocations: 92.25 kB / 0.9536 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.9309, allocations: 5.062 kB / 0.9536 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.948e-05/0.9309, allocations: 26.55 kB / 0.9536 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.96e-05/0.931, allocations: 315.9 kB / 0.9539 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003204/0.9313, allocations: 99.78 kB / 0.954 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003082/0.9316, allocations: 95.52 kB / 0.9541 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005914/0.9322, allocations: 175.7 kB / 0.9543 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.9322, allocations: 0 / 0.9543 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006686/0.9329, allocations: 211.7 kB / 0.9545 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.9329, allocations: 5.75 kB / 0.9545 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.933, allocations: 0 / 0.9545 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.933, allocations: 5.094 kB / 0.9545 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.9332, allocations: 38.34 kB / 0.9545 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.9332, allocations: 0 / 0.9545 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.9334, allocations: 27.33 kB / 0.9546 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.9335, allocations: 1.188 kB / 0.9546 GB, free: 5.07 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.103e-05/0.9335, allocations: 122.4 kB / 0.9547 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.167e-05/0.9336, allocations: 6.219 kB / 0.9547 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.478e-05/0.9336, allocations: 10.19 kB / 0.9547 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.9336, allocations: 1.422 kB / 0.9547 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.9336, allocations: 0 / 0.9547 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.9336, allocations: 3.938 kB / 0.9547 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.9338, allocations: 212.8 kB / 0.9549 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.9338, allocations: 5.078 kB / 0.9549 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/0.9341, allocations: 34.47 kB / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.9341, allocations: 4 kB / 0.9549 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.9341, allocations: 1.281 kB / 0.9549 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.9341, allocations: 0 / 0.9549 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.9341, allocations: 1.094 kB / 0.9549 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006925/0.9348, allocations: 314.6 kB / 0.9552 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.117e-05/0.9348, allocations: 86.33 kB / 0.9553 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.507e-05/0.9349, allocations: 5.234 kB / 0.9553 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.9351, allocations: 25.92 kB / 0.9554 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.9351, allocations: 2.594 kB / 0.9554 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.9351, allocations: 0 / 0.9554 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.302e-05/0.9352, allocations: 102.8 kB / 0.9555 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9352, allocations: 4 kB / 0.9555 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002326/0.9354, allocations: 15.47 kB / 0.9555 GB, free: 4.219 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 (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.0001273/0.9356, allocations: 99.47 kB / 0.9556 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006898/0.9363, allocations: 199.9 kB / 0.9558 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.9363, allocations: 0 / 0.9558 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003233/0.9366, allocations: 101.7 kB / 0.9559 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.9369, allocations: 2.719 kB / 0.9559 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008707/0.9377, allocations: 271.5 kB / 0.9561 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.9379, allocations: 0.6879 MB / 0.9568 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.538e-05/0.938, allocations: 20.36 kB / 0.9568 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.52e-05/0.938, allocations: 10.19 kB / 0.9568 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.938, allocations: 0 / 0.9568 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of Templates: time 0.003194/0.9412, allocations: 0.8801 MB / 0.9577 GB, free: 2.605 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