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.001205/0.001205, allocations: 107.4 kB / 16.36 MB, free: 6.285 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.001319/0.001319, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.232/1.232, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.02/2.02, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 71.83 kB / 0.814 GB, free: 32.74 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2373, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002353/0.2397, allocations: 1.454 MB / 0.9525 GB, free: 6.598 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0003239/0.2401, allocations: 148.4 kB / 0.9527 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.871e-05/0.2401, allocations: 0 / 0.9527 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.636e-05/0.2401, allocations: 3.938 kB / 0.9527 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.469e-05/0.2402, allocations: 7.984 kB / 0.9527 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.2404, allocations: 31.91 kB / 0.9527 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.887e-05/0.2405, allocations: 35.92 kB / 0.9528 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.2406, allocations: 31.91 kB / 0.9528 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.851e-05/0.2407, allocations: 15.94 kB / 0.9528 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.033e-05/0.2407, allocations: 23.86 kB / 0.9528 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.2407, allocations: 0 / 0.9528 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.922e-05/0.2408, allocations: 35.97 kB / 0.9529 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.569e-05/0.2408, allocations: 11.92 kB / 0.9529 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.718e-05/0.2409, allocations: 19.88 kB / 0.9529 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.241, allocations: 67.84 kB / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.241, allocations: 0 / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.933e-06/0.241, allocations: 0 / 0.953 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.241, allocations: 0 / 0.953 GB, free: 6.168 MB / 0.7325 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.0004143/0.2414, allocations: 363.2 kB / 0.9533 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.2415, allocations: 8.031 kB / 0.9533 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009559/0.2424, allocations: 216.5 kB / 0.9535 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.2426, allocations: 172.2 kB / 0.9537 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.2426, allocations: 4.375 kB / 0.9537 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.2426, allocations: 4.375 kB / 0.9537 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004872/0.2431, allocations: 205.9 kB / 0.9539 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.2431, allocations: 192 / 0.9539 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.2431, allocations: 7.938 kB / 0.9539 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.2431, allocations: 0 / 0.9539 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000728/0.2439, allocations: 279.6 kB / 0.9542 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008/0.2447, allocations: 433.4 kB / 0.9546 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009194/0.2456, allocations: 286.1 kB / 0.9548 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.2459, allocations: 104.8 kB / 0.9549 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.2459, allocations: 0 / 0.9549 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.246, allocations: 34.55 kB / 0.955 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.246, allocations: 0 / 0.955 GB, free: 3.926 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0009855/0.2469, allocations: 313.2 kB / 0.9553 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.247, allocations: 55.41 kB / 0.9553 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.537e-05/0.2471, allocations: 117.8 kB / 0.9554 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.2471, allocations: 25.7 kB / 0.9555 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.574e-05/0.2471, allocations: 88.14 kB / 0.9555 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.2472, allocations: 15.83 kB / 0.9556 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.2472, allocations: 13.72 kB / 0.9556 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.312e-05/0.2473, allocations: 326.8 kB / 0.9559 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003152/0.2476, allocations: 95.88 kB / 0.956 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.2479, allocations: 92.25 kB / 0.9561 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005522/0.2485, allocations: 172.9 kB / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2485, allocations: 0 / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006219/0.2491, allocations: 225.2 kB / 0.9564 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.2492, allocations: 10.12 kB / 0.9565 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.2492, allocations: 8 kB / 0.9565 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.2492, allocations: 0 / 0.9565 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002151/0.2494, allocations: 31.94 kB / 0.9565 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.2494, allocations: 0 / 0.9565 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.2496, allocations: 27.95 kB / 0.9565 GB, free: 2.281 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.2496, allocations: 4 kB / 0.9565 GB, free: 2.277 MB / 0.7325 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.859e-05/0.2497, allocations: 127.7 kB / 0.9566 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.762e-05/0.2497, allocations: 0 / 0.9566 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.607e-05/0.2498, allocations: 11.91 kB / 0.9567 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2498, allocations: 0 / 0.9567 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2498, allocations: 0 / 0.9567 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.2498, allocations: 0 / 0.9567 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002037/0.25, allocations: 217.5 kB / 0.9569 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.25, allocations: 0 / 0.9569 GB, free: 1.863 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002004/0.2502, allocations: 35.94 kB / 0.9569 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2502, allocations: 4 kB / 0.9569 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.2503, allocations: 0 / 0.9569 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2503, allocations: 0 / 0.9569 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.2503, allocations: 4 kB / 0.9569 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006829/0.2509, allocations: 319.2 kB / 0.9572 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.893e-05/0.251, allocations: 85.02 kB / 0.9573 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.251, allocations: 0 / 0.9573 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/0.2512, allocations: 27.95 kB / 0.9573 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.945e-05/0.2513, allocations: 4 kB / 0.9573 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.2513, allocations: 3.984 kB / 0.9573 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.676e-05/0.2513, allocations: 99.27 kB / 0.9574 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2513, allocations: 0 / 0.9574 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002196/0.2516, allocations: 12 kB / 0.9574 GB, free: 1.246 MB / 0.7325 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.0001003/0.2517, allocations: 99.19 kB / 0.9575 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006862/0.2524, allocations: 203.7 kB / 0.9577 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.2524, allocations: 0 / 0.9577 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003194/0.2527, allocations: 95.88 kB / 0.9578 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.253, allocations: 8.219 kB / 0.9578 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008862/0.2539, allocations: 265.2 kB / 0.9581 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003056/0.2542, allocations: 0.6924 MB / 0.9587 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.426e-05/0.2543, allocations: 20.23 kB / 0.9588 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.298e-05/0.2543, allocations: 11.44 kB / 0.9588 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of SimCode: time 3.6e-07/0.2543, allocations: 0 / 0.9588 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of Templates: time 0.0034/0.2577, allocations: 0.9309 MB / 0.9597 GB, free: 14.88 MB / 0.7481 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches