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.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.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.0009995/0.000999, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001023/0.001023, allocations: 177.3 kB / 15.94 MB, free: 228 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.422/1.422, allocations: 223.2 MB / 239.9 MB, free: 5.324 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.43/2.43, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004022/0.0004022, allocations: 8 kB / 0.8145 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9435/0.944, allocations: 142.3 MB / 0.9535 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.001924/0.946, allocations: 1.439 MB / 0.9549 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009516/0.9469, allocations: 0.5914 MB / 0.9555 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.193e-05/0.947, allocations: 1.094 kB / 0.9555 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.539e-05/0.947, allocations: 7.922 kB / 0.9555 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.584e-05/0.9471, allocations: 10.95 kB / 0.9555 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005223/0.9476, allocations: 151 kB / 0.9557 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.9478, allocations: 75.98 kB / 0.9557 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.9479, allocations: 31.89 kB / 0.9558 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.9481, allocations: 51.3 kB / 0.9558 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.965e-05/0.9481, allocations: 38.91 kB / 0.9558 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.016e-05/0.9482, allocations: 3.719 kB / 0.9558 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.9483, allocations: 40.08 kB / 0.9559 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.087e-05/0.9483, allocations: 21.91 kB / 0.9559 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.493e-05/0.9484, allocations: 38.86 kB / 0.9559 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000152/0.9485, allocations: 95.03 kB / 0.956 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.9485, allocations: 0.9062 kB / 0.956 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.823e-06/0.9485, allocations: 4 kB / 0.956 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.9486, allocations: 0 / 0.956 GB, free: 6.117 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.0005683/0.9491, allocations: 415.7 kB / 0.9564 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.9492, allocations: 8.75 kB / 0.9564 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000876/0.9501, allocations: 155.2 kB / 0.9566 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.9502, allocations: 176.9 kB / 0.9568 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.9503, allocations: 64.81 kB / 0.9568 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.9503, allocations: 4.719 kB / 0.9568 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005531/0.9509, allocations: 193 kB / 0.957 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.9509, allocations: 1.469 kB / 0.957 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.951, allocations: 3.953 kB / 0.957 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.951, allocations: 6.531 kB / 0.957 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006167/0.9516, allocations: 191 kB / 0.9572 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.9526, allocations: 0.502 MB / 0.9577 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.9537, allocations: 273.3 kB / 0.958 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.9537, allocations: 6.141 kB / 0.958 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.9537, allocations: 40.78 kB / 0.958 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.392e-06/0.9537, allocations: 0 / 0.958 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.001039/0.9548, allocations: 309.1 kB / 0.9583 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.9548, allocations: 52.78 kB / 0.9583 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.9549, allocations: 140.9 kB / 0.9585 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.9549, allocations: 29.7 kB / 0.9585 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.955, allocations: 113.6 kB / 0.9586 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.955, allocations: 13.94 kB / 0.9586 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.387e-06/0.955, allocations: 1.156 kB / 0.9586 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.056e-05/0.9551, allocations: 321.1 kB / 0.9589 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003151/0.9554, allocations: 97.3 kB / 0.959 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003174/0.9557, allocations: 116.4 kB / 0.9591 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.9561, allocations: 88.34 kB / 0.9592 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.9561, allocations: 1.094 kB / 0.9592 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006737/0.9568, allocations: 236.7 kB / 0.9594 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.9568, allocations: 7.594 kB / 0.9595 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.9568, allocations: 3.984 kB / 0.9595 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.9568, allocations: 2.25 kB / 0.9595 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002912/0.9571, allocations: 42.36 kB / 0.9595 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.9571, allocations: 4.953 kB / 0.9595 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/0.9573, allocations: 44.12 kB / 0.9595 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.9574, allocations: 2.844 kB / 0.9596 GB, free: 3.41 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.44e-05/0.9574, allocations: 121.7 kB / 0.9597 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.635e-05/0.9575, allocations: 8.062 kB / 0.9597 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007131/0.9582, allocations: 238.7 kB / 0.9599 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.9582, allocations: 1.375 kB / 0.9599 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.9582, allocations: 384 / 0.9599 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.9582, allocations: 5.328 kB / 0.9599 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.9585, allocations: 249.7 kB / 0.9601 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.9585, allocations: 7.984 kB / 0.9602 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.9587, allocations: 39.08 kB / 0.9602 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.9587, allocations: 1.031 kB / 0.9602 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.9587, allocations: 1.062 kB / 0.9602 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.9587, allocations: 1.062 kB / 0.9602 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.9587, allocations: 4 kB / 0.9602 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006686/0.9594, allocations: 321.8 kB / 0.9605 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.588e-05/0.9594, allocations: 82.98 kB / 0.9606 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.9595, allocations: 8.969 kB / 0.9606 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003017/0.9598, allocations: 40.42 kB / 0.9606 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.938e-05/0.9598, allocations: 7.172 kB / 0.9606 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.9599, allocations: 7.203 kB / 0.9606 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.396e-05/0.9599, allocations: 112.5 kB / 0.9608 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9599, allocations: 0 / 0.9608 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002673/0.9602, allocations: 31.69 kB / 0.9608 GB, free: 2.41 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 (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.0001286/0.9603, allocations: 99.61 kB / 0.9609 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007164/0.961, allocations: 200.3 kB / 0.9611 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.9611, allocations: 0 / 0.9611 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003134/0.9614, allocations: 106.8 kB / 0.9612 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/0.9616, allocations: 6.375 kB / 0.9612 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006264/0.9623, allocations: 303 kB / 0.9615 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001269/0.9624, allocations: 0.7088 MB / 0.9622 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.895e-05/0.9625, allocations: 10.5 kB / 0.9622 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.122e-05/0.9626, allocations: 18.61 kB / 0.9622 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of SimCode: time 1.383e-06/0.9626, allocations: 0 / 0.9622 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of Templates: time 0.003637/0.9662, allocations: 1.306 MB / 0.9635 GB, free: 0.5469 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","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches