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.00154/0.00154, allocations: 107.1 kB / 16.27 MB, free: 6.355 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.001581/0.001581, allocations: 195.3 kB / 17.2 MB, free: 5.953 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.41/1.41, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.364/2.364, allocations: 390.2 MB / 0.6653 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 65.36 kB / 0.8132 GB, free: 33.01 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2797, allocations: 140.4 MB / 0.9503 GB, free: 8.934 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003451/0.2832, allocations: 1.778 MB / 0.952 GB, free: 7.141 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001284/0.2845, allocations: 0.6554 MB / 0.9526 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.2846, allocations: 4 kB / 0.9526 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.886e-05/0.2847, allocations: 11.86 kB / 0.9527 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.177e-05/0.2848, allocations: 11.81 kB / 0.9527 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000638/0.2854, allocations: 183.4 kB / 0.9528 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001665/0.2856, allocations: 119.7 kB / 0.953 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.2858, allocations: 56.97 kB / 0.953 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.2859, allocations: 59.78 kB / 0.9531 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.2861, allocations: 51.75 kB / 0.9531 GB, free: 5.992 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.385e-05/0.2861, allocations: 8 kB / 0.9531 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001452/0.2863, allocations: 43.97 kB / 0.9532 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.295e-05/0.2863, allocations: 31.91 kB / 0.9532 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.295e-05/0.2864, allocations: 51.72 kB / 0.9532 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.2867, allocations: 147.8 kB / 0.9534 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2867, allocations: 0 / 0.9534 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2867, allocations: 4 kB / 0.9534 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.2867, allocations: 4 kB / 0.9534 GB, free: 5.707 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.0006624/0.2874, allocations: 432.1 kB / 0.9538 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.2874, allocations: 12.03 kB / 0.9538 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009271/0.2883, allocations: 112.6 kB / 0.9539 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.2885, allocations: 184.1 kB / 0.9541 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.2886, allocations: 71.89 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.807e-05/0.2887, allocations: 8.375 kB / 0.9542 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005482/0.2892, allocations: 181.5 kB / 0.9543 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.2892, allocations: 4 kB / 0.9543 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/0.2893, allocations: 4 kB / 0.9544 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.2893, allocations: 4 kB / 0.9544 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006356/0.2899, allocations: 151.8 kB / 0.9545 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.2911, allocations: 485.8 kB / 0.955 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.2922, allocations: 210.3 kB / 0.9552 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003184/0.2925, allocations: 92.78 kB / 0.9553 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.873e-05/0.2925, allocations: 3.984 kB / 0.9553 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.2926, allocations: 34.55 kB / 0.9553 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 4.298e-06/0.2926, allocations: 0 / 0.9553 GB, free: 3.582 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.001066/0.2937, allocations: 265.4 kB / 0.9555 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.2937, allocations: 55.41 kB / 0.9556 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.2939, allocations: 139.7 kB / 0.9557 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.2939, allocations: 29.7 kB / 0.9558 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.815e-05/0.294, allocations: 112.2 kB / 0.9559 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.294, allocations: 15.66 kB / 0.9559 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.038e-05/0.2941, allocations: 25.7 kB / 0.9559 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.2942, allocations: 322.8 kB / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.2945, allocations: 75.86 kB / 0.9563 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.2949, allocations: 98.48 kB / 0.9564 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006177/0.2955, allocations: 162.4 kB / 0.9565 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.2955, allocations: 0 / 0.9565 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007007/0.2962, allocations: 205.4 kB / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.2962, allocations: 4 kB / 0.9567 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2962, allocations: 0 / 0.9567 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.2963, allocations: 7.938 kB / 0.9567 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002756/0.2966, allocations: 35.89 kB / 0.9568 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.2966, allocations: 0 / 0.9568 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.2968, allocations: 31.88 kB / 0.9568 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.2968, allocations: 3.984 kB / 0.9568 GB, free: 1.945 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.0001044/0.2969, allocations: 117.8 kB / 0.9569 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.425e-05/0.297, allocations: 11.91 kB / 0.9569 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007408/0.2977, allocations: 210.4 kB / 0.9571 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2977, allocations: 64 / 0.9571 GB, free: 1.598 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.2977, allocations: 4 kB / 0.9571 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2977, allocations: 0 / 0.9571 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002584/0.298, allocations: 238.2 kB / 0.9574 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.298, allocations: 0 / 0.9574 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002307/0.2983, allocations: 31.95 kB / 0.9574 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2983, allocations: 0 / 0.9574 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.2983, allocations: 11.94 kB / 0.9574 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.2983, allocations: 3.984 kB / 0.9574 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2983, allocations: 0 / 0.9574 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007112/0.299, allocations: 287.2 kB / 0.9577 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.158e-05/0.2991, allocations: 88.94 kB / 0.9578 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.049e-05/0.2991, allocations: 7.938 kB / 0.9578 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002995/0.2994, allocations: 27.95 kB / 0.9578 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.56e-05/0.2995, allocations: 0 / 0.9578 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.2995, allocations: 15.92 kB / 0.9578 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.523e-05/0.2996, allocations: 105.3 kB / 0.9579 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2996, allocations: 0 / 0.9579 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002697/0.2999, allocations: 31.91 kB / 0.9579 GB, free: 0.6797 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.0001515/0.3, allocations: 95.25 kB / 0.958 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006986/0.3007, allocations: 167.8 kB / 0.9582 GB, free: 420 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3007, allocations: 4.125 kB / 0.9582 GB, free: 416 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000312/0.3011, allocations: 75.92 kB / 0.9583 GB, free: 340 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.3014, allocations: 14.33 kB / 0.9583 GB, free: 328 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007181/0.3022, allocations: 293 kB / 0.9586 GB, free: 4 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.3024, allocations: 0.7002 MB / 0.9593 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.752e-05/0.3025, allocations: 23.42 kB / 0.9593 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of SimCode: time 3.1e-07/0.3025, allocations: 0 / 0.9593 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of Templates: time 0.003421/0.306, allocations: 1.601 MB / 0.9608 GB, free: 13.65 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