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.001711/0.00171, allocations: 106 kB / 15.99 MB, free: 6.352 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.001884/0.001884, allocations: 193 kB / 16.91 MB, free: 6.184 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.409/1.409, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.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.372/2.372, allocations: 390.2 MB / 0.665 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 66.39 kB / 0.8127 GB, free: 33.17 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.302, allocations: 140.4 MB / 0.9498 GB, free: 9.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003691/0.3058, allocations: 1.835 MB / 0.9516 GB, free: 7.422 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.3071, allocations: 0.6476 MB / 0.9522 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.3073, allocations: 4 kB / 0.9522 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 6.53e-05/0.3073, allocations: 3.938 kB / 0.9522 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.903e-05/0.3075, allocations: 15.84 kB / 0.9522 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006517/0.3081, allocations: 159.6 kB / 0.9524 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001987/0.3083, allocations: 123.6 kB / 0.9525 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.3085, allocations: 52.98 kB / 0.9525 GB, free: 6.418 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.3087, allocations: 59.83 kB / 0.9526 GB, free: 6.359 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.3088, allocations: 51.77 kB / 0.9526 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.049e-05/0.3088, allocations: 8 kB / 0.9526 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.309, allocations: 47.97 kB / 0.9527 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.796e-05/0.309, allocations: 31.89 kB / 0.9527 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.717e-05/0.3091, allocations: 55.72 kB / 0.9528 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000181/0.3093, allocations: 100.1 kB / 0.9529 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3093, allocations: 0 / 0.9529 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.025e-06/0.3093, allocations: 0 / 0.9529 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.3093, allocations: 3.938 kB / 0.9529 GB, free: 6.066 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006482/0.31, allocations: 431.1 kB / 0.9533 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.31, allocations: 11.97 kB / 0.9533 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000855/0.3109, allocations: 116.6 kB / 0.9534 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.311, allocations: 188.1 kB / 0.9536 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-05/0.3111, allocations: 59.97 kB / 0.9536 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.953e-05/0.3112, allocations: 8.375 kB / 0.9537 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005228/0.3117, allocations: 177.6 kB / 0.9538 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.3117, allocations: 0 / 0.9538 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.3117, allocations: 0 / 0.9538 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3118, allocations: 7.938 kB / 0.9538 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005839/0.3123, allocations: 159.8 kB / 0.954 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.3135, allocations: 481.8 kB / 0.9544 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009856/0.3145, allocations: 226.3 kB / 0.9547 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002851/0.3148, allocations: 76.91 kB / 0.9547 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.3148, allocations: 0 / 0.9547 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.3149, allocations: 38.56 kB / 0.9548 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 9.72e-07/0.3149, allocations: 0 / 0.9548 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.001025/0.3159, allocations: 269.3 kB / 0.955 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.316, allocations: 55.41 kB / 0.9551 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.3161, allocations: 139.7 kB / 0.9552 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.3162, allocations: 25.7 kB / 0.9552 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.3163, allocations: 108.2 kB / 0.9553 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.543e-05/0.3163, allocations: 31.62 kB / 0.9554 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.553e-05/0.3164, allocations: 25.7 kB / 0.9554 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3165, allocations: 314.8 kB / 0.9557 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/0.3168, allocations: 80.16 kB / 0.9558 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002952/0.3171, allocations: 90.44 kB / 0.9559 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005685/0.3177, allocations: 170.4 kB / 0.956 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3177, allocations: 0 / 0.956 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006603/0.3184, allocations: 205.4 kB / 0.9562 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.3184, allocations: 6.031 kB / 0.9562 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.3184, allocations: 4 kB / 0.9562 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.3185, allocations: 3.938 kB / 0.9562 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.3188, allocations: 39.94 kB / 0.9563 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.3188, allocations: 0 / 0.9563 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001919/0.319, allocations: 31.81 kB / 0.9563 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.319, allocations: 4 kB / 0.9563 GB, free: 2.301 MB / 0.7325 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 0.0001147/0.3191, allocations: 121.8 kB / 0.9564 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-05/0.3192, allocations: 11.89 kB / 0.9564 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000692/0.3199, allocations: 206.2 kB / 0.9566 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3199, allocations: 0 / 0.9566 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3199, allocations: 4 kB / 0.9566 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.3199, allocations: 0 / 0.9566 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.3202, allocations: 230.2 kB / 0.9568 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3202, allocations: 0 / 0.9568 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002296/0.3204, allocations: 43.88 kB / 0.9569 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.3205, allocations: 4 kB / 0.9569 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.3205, allocations: 3.938 kB / 0.9569 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.3205, allocations: 0 / 0.9569 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3205, allocations: 0 / 0.9569 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000684/0.3212, allocations: 287.4 kB / 0.9572 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.981e-05/0.3212, allocations: 85.02 kB / 0.9573 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.3213, allocations: 3.938 kB / 0.9573 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003057/0.3216, allocations: 31.95 kB / 0.9573 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.3216, allocations: 7.984 kB / 0.9573 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.3217, allocations: 7.984 kB / 0.9573 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.207e-05/0.3217, allocations: 105.2 kB / 0.9574 GB, free: 1.074 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3217, allocations: 4 kB / 0.9574 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002715/0.322, allocations: 23.91 kB / 0.9574 GB, free: 1.047 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 (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.0001462/0.3222, allocations: 107.1 kB / 0.9575 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006511/0.3228, allocations: 171.8 kB / 0.9577 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3228, allocations: 3.938 kB / 0.9577 GB, free: 0.7578 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002884/0.3231, allocations: 83.91 kB / 0.9578 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.3235, allocations: 4 kB / 0.9578 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00071/0.3242, allocations: 317.3 kB / 0.9581 GB, free: 336 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002622/0.3245, allocations: 0.7041 MB / 0.9588 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.925e-05/0.3246, allocations: 15.42 kB / 0.9588 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of SimCode: time 2.71e-07/0.3246, allocations: 0 / 0.9588 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of Templates: time 0.003536/0.3281, allocations: 1.601 MB / 0.9603 GB, free: 13.98 MB / 0.7481 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches