Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.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.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 195.3 kB / 16.53 MB, free: 6.391 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.477/2.477, allocations: 390.2 MB / 0.6647 GB, free: 416 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002285, allocations: 67.89 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9237/0.926, allocations: 140.4 MB / 0.9496 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003102/0.9292, allocations: 1.768 MB / 0.9513 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001154/0.9304, allocations: 0.6559 MB / 0.9519 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.509e-05/0.9304, allocations: 1.531 kB / 0.9519 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.551e-05/0.9305, allocations: 11.81 kB / 0.952 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.168e-05/0.9306, allocations: 17.67 kB / 0.952 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006495/0.9313, allocations: 166.4 kB / 0.9521 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001774/0.9315, allocations: 125 kB / 0.9523 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001884/0.9317, allocations: 47.41 kB / 0.9523 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.9318, allocations: 61.05 kB / 0.9524 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.9319, allocations: 49.45 kB / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/0.932, allocations: 9.031 kB / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.9321, allocations: 48.39 kB / 0.9525 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.492e-05/0.9321, allocations: 34.59 kB / 0.9525 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.984e-05/0.9322, allocations: 56.33 kB / 0.9525 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002342/0.9324, allocations: 137.8 kB / 0.9527 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.9325, allocations: 3.938 kB / 0.9527 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.245e-06/0.9325, allocations: 1.188 kB / 0.9527 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.9325, allocations: 3.938 kB / 0.9527 GB, free: 6.832 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005807/0.9331, allocations: 442.4 kB / 0.9531 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.9331, allocations: 9.594 kB / 0.9531 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008542/0.934, allocations: 112.4 kB / 0.9532 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.9341, allocations: 183 kB / 0.9534 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.283e-05/0.9342, allocations: 63.97 kB / 0.9535 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.9342, allocations: 8.875 kB / 0.9535 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000499/0.9347, allocations: 172.1 kB / 0.9536 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.9347, allocations: 3.938 kB / 0.9536 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.9348, allocations: 5.406 kB / 0.9536 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.9348, allocations: 1.375 kB / 0.9536 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006052/0.9354, allocations: 165.6 kB / 0.9538 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.9365, allocations: 482.4 kB / 0.9543 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.9376, allocations: 216.4 kB / 0.9545 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003031/0.9379, allocations: 83.05 kB / 0.9545 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.9379, allocations: 1.281 kB / 0.9545 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.9379, allocations: 35.78 kB / 0.9546 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.532e-06/0.9379, allocations: 0 / 0.9546 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.001073/0.939, allocations: 271.8 kB / 0.9548 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.9391, allocations: 52.56 kB / 0.9549 GB, free: 5 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.805e-05/0.9392, allocations: 140.3 kB / 0.955 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.9392, allocations: 26.8 kB / 0.9551 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.041e-05/0.9392, allocations: 109.2 kB / 0.9552 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.9393, allocations: 17.86 kB / 0.9552 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.586e-05/0.9393, allocations: 25.12 kB / 0.9552 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.064e-05/0.9394, allocations: 325.1 kB / 0.9555 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.9397, allocations: 72.92 kB / 0.9556 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003064/0.94, allocations: 100.3 kB / 0.9557 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005725/0.9406, allocations: 162.3 kB / 0.9558 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.9406, allocations: 0 / 0.9558 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006534/0.9413, allocations: 206.5 kB / 0.956 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.9413, allocations: 6.031 kB / 0.956 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.9413, allocations: 0 / 0.956 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.9413, allocations: 9.391 kB / 0.956 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.9416, allocations: 42.38 kB / 0.9561 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.9416, allocations: 9.5 kB / 0.9561 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/0.9418, allocations: 24.56 kB / 0.9561 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.9418, allocations: 2.938 kB / 0.9561 GB, free: 4.008 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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.532e-05/0.9419, allocations: 113.8 kB / 0.9562 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.472e-05/0.9419, allocations: 8.344 kB / 0.9562 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006885/0.9426, allocations: 212.3 kB / 0.9564 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.9427, allocations: 0 / 0.9564 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.9427, allocations: 0 / 0.9564 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.9427, allocations: 1.812 kB / 0.9564 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002034/0.9429, allocations: 237.8 kB / 0.9567 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.9429, allocations: 3.938 kB / 0.9567 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.9431, allocations: 35.36 kB / 0.9567 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.9431, allocations: 3.984 kB / 0.9567 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.9431, allocations: 5.5 kB / 0.9567 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.9432, allocations: 1.375 kB / 0.9567 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.9432, allocations: 3.984 kB / 0.9567 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006592/0.9438, allocations: 285.8 kB / 0.957 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.628e-05/0.9439, allocations: 83.77 kB / 0.9571 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.9439, allocations: 5.312 kB / 0.9571 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002961/0.9442, allocations: 28.45 kB / 0.9571 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.407e-05/0.9442, allocations: 10.73 kB / 0.9571 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.9443, allocations: 12.11 kB / 0.9571 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.574e-05/0.9443, allocations: 102.4 kB / 0.9572 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.132e-06/0.9443, allocations: 3.938 kB / 0.9572 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002603/0.9446, allocations: 27.12 kB / 0.9572 GB, free: 3.027 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 (6): * Single equations (assignments): 6 * 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.0001175/0.9447, allocations: 95.75 kB / 0.9573 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006953/0.9454, allocations: 173.1 kB / 0.9575 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.9455, allocations: 5.312 kB / 0.9575 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.9458, allocations: 82.28 kB / 0.9576 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.9461, allocations: 8.375 kB / 0.9576 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006564/0.9468, allocations: 261.2 kB / 0.9578 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001373/0.947, allocations: 0.7051 MB / 0.9585 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.363e-05/0.9471, allocations: 13.31 kB / 0.9585 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.148e-05/0.9471, allocations: 12.59 kB / 0.9586 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of SimCode: time 1.303e-06/0.9471, allocations: 0 / 0.9586 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of Templates: time 0.003888/0.951, allocations: 1.467 MB / 0.96 GB, free: 1.133 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches