Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001324/0.001324, allocations: 108 kB / 15.61 MB, free: 152 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.001487/0.001487, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.395/1.395, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.894/2.894, allocations: 472.7 MB / 0.7452 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 64.05 kB / 0.9121 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3577, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003052/0.3608, allocations: 1.779 MB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001092/0.3619, allocations: 0.6624 MB / 1.071 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.624e-05/0.362, allocations: 0 / 1.071 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.274e-05/0.362, allocations: 15.81 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.199e-05/0.3621, allocations: 15.8 kB / 1.071 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005595/0.3627, allocations: 170.6 kB / 1.071 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001561/0.3628, allocations: 119.7 kB / 1.071 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.363, allocations: 45.09 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.3631, allocations: 59.84 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.835e-05/0.3632, allocations: 51.75 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.3633, allocations: 11.94 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.3634, allocations: 43.97 kB / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.921e-05/0.3635, allocations: 39.83 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.925e-05/0.3635, allocations: 51.72 kB / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.3638, allocations: 143.8 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3638, allocations: 0 / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3638, allocations: 4 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.3638, allocations: 0 / 1.071 GB, free: 7.211 MB / 0.8262 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.0006256/0.3644, allocations: 431 kB / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.3645, allocations: 12.03 kB / 1.072 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008825/0.3654, allocations: 112.6 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.3655, allocations: 196 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-05/0.3656, allocations: 59.97 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.209e-05/0.3656, allocations: 8.375 kB / 1.072 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005141/0.3662, allocations: 171.2 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.535e-06/0.3662, allocations: 4 kB / 1.072 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.375e-05/0.3662, allocations: 4 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3662, allocations: 0 / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006318/0.3669, allocations: 163.7 kB / 1.072 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.368, allocations: 493.7 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.3691, allocations: 210.3 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003169/0.3694, allocations: 80.91 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.3694, allocations: 7.984 kB / 1.073 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.3695, allocations: 34.56 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 1.323e-06/0.3695, allocations: 0 / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.001065/0.3705, allocations: 269.4 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.3706, allocations: 51.41 kB / 1.074 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.3707, allocations: 135.9 kB / 1.074 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.3707, allocations: 29.7 kB / 1.074 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.073e-05/0.3708, allocations: 116.1 kB / 1.074 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.221e-05/0.3709, allocations: 23.64 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.055e-05/0.3709, allocations: 25.7 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.3711, allocations: 314.8 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003146/0.3714, allocations: 75.91 kB / 1.074 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003367/0.3718, allocations: 94.5 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006191/0.3724, allocations: 162.4 kB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3724, allocations: 256 / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007298/0.3731, allocations: 209.4 kB / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.3732, allocations: 8 kB / 1.075 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3732, allocations: 0 / 1.075 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.3732, allocations: 3.938 kB / 1.075 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002797/0.3735, allocations: 39.94 kB / 1.075 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.3735, allocations: 3.938 kB / 1.075 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.3737, allocations: 19.97 kB / 1.075 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.3737, allocations: 7.938 kB / 1.075 GB, free: 3.461 MB / 0.8262 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.0001295/0.3739, allocations: 127.4 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.44e-05/0.3739, allocations: 7.906 kB / 1.075 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007653/0.3747, allocations: 210.2 kB / 1.075 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.3747, allocations: 3.938 kB / 1.075 GB, free: 3.098 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3747, allocations: 0 / 1.075 GB, free: 3.098 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.3747, allocations: 0 / 1.075 GB, free: 3.098 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003132/0.375, allocations: 234.1 kB / 1.075 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.237e-06/0.375, allocations: 3.984 kB / 1.075 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000238/0.3753, allocations: 35.89 kB / 1.075 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.3753, allocations: 0 / 1.075 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.3753, allocations: 11.94 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.3753, allocations: 4 kB / 1.075 GB, free: 2.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3753, allocations: 160 / 1.075 GB, free: 2.766 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007249/0.3761, allocations: 283.3 kB / 1.076 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.227e-05/0.3761, allocations: 81.02 kB / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.3762, allocations: 3.938 kB / 1.076 GB, free: 2.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003067/0.3765, allocations: 31.95 kB / 1.076 GB, free: 2.34 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.765e-05/0.3765, allocations: 12.16 kB / 1.076 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.3766, allocations: 11.98 kB / 1.076 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.387e-05/0.3766, allocations: 109.1 kB / 1.076 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.71e-07/0.3766, allocations: 0 / 1.076 GB, free: 2.211 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002567/0.3769, allocations: 27.91 kB / 1.076 GB, free: 2.184 MB / 0.8262 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.0001911/0.3771, allocations: 107.7 kB / 1.076 GB, free: 2.07 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006793/0.3778, allocations: 159.8 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.3778, allocations: 4.125 kB / 1.076 GB, free: 1.91 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003069/0.3781, allocations: 83.84 kB / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.3785, allocations: 11.98 kB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006816/0.3792, allocations: 263.5 kB / 1.077 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.3795, allocations: 0.7002 MB / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001058/0.3796, allocations: 12 kB / 1.077 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.909e-05/0.3797, allocations: 15.42 kB / 1.077 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3797, allocations: 4 kB / 1.077 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of Templates: time 0.004213/0.3839, allocations: 1.466 MB / 1.079 GB, free: 15.32 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches