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.0008658/0.0008658, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0009102/0.0009102, allocations: 168.7 kB / 15.95 MB, free: 204 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.442/1.442, allocations: 223.3 MB / 240 MB, free: 5.398 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.493/2.493, allocations: 390.9 MB / 0.666 GB, free: 2.434 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003652, allocations: 8 kB / 0.8154 GB, free: 13.62 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9028/0.9032, allocations: 142.4 MB / 0.9544 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.001613/0.9049, allocations: 1.447 MB / 0.9558 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008198/0.9057, allocations: 0.6185 MB / 0.9565 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.077e-05/0.9058, allocations: 1.844 kB / 0.9565 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.141e-05/0.9058, allocations: 7.922 kB / 0.9565 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.475e-05/0.9058, allocations: 10.12 kB / 0.9565 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004913/0.9063, allocations: 149.7 kB / 0.9566 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.9065, allocations: 104.9 kB / 0.9567 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.9066, allocations: 36.69 kB / 0.9567 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.974e-05/0.9067, allocations: 46.83 kB / 0.9568 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.504e-05/0.9068, allocations: 43.3 kB / 0.9568 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.9068, allocations: 4.438 kB / 0.9568 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.109e-05/0.9069, allocations: 41.38 kB / 0.9569 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.607e-05/0.9069, allocations: 21.75 kB / 0.9569 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.654e-05/0.907, allocations: 39.7 kB / 0.9569 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000124/0.9071, allocations: 90.47 kB / 0.957 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.9071, allocations: 5.438 kB / 0.957 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.244e-06/0.9071, allocations: 4 kB / 0.957 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.525e-06/0.9071, allocations: 0 / 0.957 GB, free: 5.703 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.0004526/0.9076, allocations: 414.9 kB / 0.9574 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.9076, allocations: 9.938 kB / 0.9574 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007233/0.9084, allocations: 150.2 kB / 0.9576 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.347e-05/0.9085, allocations: 181.3 kB / 0.9578 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.565e-05/0.9086, allocations: 64.19 kB / 0.9578 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.9086, allocations: 9.906 kB / 0.9578 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004588/0.9091, allocations: 185.3 kB / 0.958 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.9091, allocations: 0 / 0.958 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.9091, allocations: 14.19 kB / 0.958 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.9091, allocations: 5.219 kB / 0.958 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005276/0.9096, allocations: 192.5 kB / 0.9582 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009076/0.9106, allocations: 0.4965 MB / 0.9587 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008608/0.9114, allocations: 271.5 kB / 0.9589 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002534/0.9117, allocations: 103.9 kB / 0.959 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.9117, allocations: 1.375 kB / 0.959 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.485e-05/0.9118, allocations: 35.94 kB / 0.9591 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.303e-06/0.9118, allocations: 0 / 0.9591 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0008569/0.9126, allocations: 314.5 kB / 0.9594 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.031e-05/0.9127, allocations: 55.36 kB / 0.9594 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.284e-05/0.9127, allocations: 134.9 kB / 0.9596 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.9128, allocations: 31.08 kB / 0.9596 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.969e-05/0.9128, allocations: 117.6 kB / 0.9597 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.9128, allocations: 18.48 kB / 0.9597 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.856e-06/0.9128, allocations: 0 / 0.9597 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.097e-05/0.9129, allocations: 317.6 kB / 0.96 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002672/0.9132, allocations: 96.62 kB / 0.9601 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.9134, allocations: 117.9 kB / 0.9602 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.9137, allocations: 91.73 kB / 0.9603 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.9137, allocations: 1 kB / 0.9603 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005894/0.9143, allocations: 233.8 kB / 0.9605 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.9143, allocations: 8.812 kB / 0.9606 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.9144, allocations: 1 kB / 0.9606 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.9144, allocations: 4.906 kB / 0.9606 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.9146, allocations: 45.94 kB / 0.9606 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.9146, allocations: 1.125 kB / 0.9606 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.9148, allocations: 45.22 kB / 0.9606 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.9148, allocations: 10.36 kB / 0.9607 GB, free: 2.938 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 6.722e-05/0.9149, allocations: 113.8 kB / 0.9608 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.69e-05/0.915, allocations: 8.125 kB / 0.9608 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006212/0.9156, allocations: 239.6 kB / 0.961 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.9156, allocations: 0 / 0.961 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.9156, allocations: 5.109 kB / 0.961 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.9156, allocations: 0 / 0.961 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002067/0.9158, allocations: 238.6 kB / 0.9612 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.9158, allocations: 4 kB / 0.9612 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002103/0.916, allocations: 42.95 kB / 0.9613 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.9161, allocations: 1.312 kB / 0.9613 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.9161, allocations: 1.312 kB / 0.9613 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.9161, allocations: 0 / 0.9613 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.9161, allocations: 3.953 kB / 0.9613 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006051/0.9167, allocations: 326.6 kB / 0.9616 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.532e-05/0.9167, allocations: 83.39 kB / 0.9617 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.9168, allocations: 8.672 kB / 0.9617 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.917, allocations: 44.89 kB / 0.9617 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.9171, allocations: 2.656 kB / 0.9617 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.9171, allocations: 15.56 kB / 0.9617 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.804e-05/0.9171, allocations: 103.1 kB / 0.9618 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9172, allocations: 4 kB / 0.9618 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002604/0.9174, allocations: 31.62 kB / 0.9619 GB, free: 1.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 (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.0001102/0.9175, allocations: 104.2 kB / 0.962 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006008/0.9181, allocations: 199.9 kB / 0.9622 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.9181, allocations: 0 / 0.9622 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002663/0.9184, allocations: 97.86 kB / 0.9623 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.9187, allocations: 15.11 kB / 0.9623 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005421/0.9192, allocations: 298.7 kB / 0.9626 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.9194, allocations: 0.6998 MB / 0.9632 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.806e-05/0.9195, allocations: 17.92 kB / 0.9633 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.9195, allocations: 15.77 kB / 0.9633 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.9195, allocations: 4 kB / 0.9633 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of Templates: time 0.003073/0.9226, allocations: 1.308 MB / 0.9646 GB, free: 96 kB / 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