Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009448/0.0009448, allocations: 97.78 kB / 16.02 MB, free: 76 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.001118/0.001118, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.389/1.389, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.618/2.618, allocations: 437.8 MB / 0.7128 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003709/0.000371, allocations: 8 kB / 0.8735 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7546/0.755, allocations: 153.8 MB / 1.024 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.0024/0.7574, allocations: 1.486 MB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001346/0.7588, allocations: 0.6477 MB / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.316e-05/0.7589, allocations: 0 / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.978e-05/0.759, allocations: 11.86 kB / 1.026 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.7591, allocations: 15.92 kB / 1.026 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006765/0.7598, allocations: 151.4 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002362/0.7601, allocations: 115.6 kB / 1.026 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.7603, allocations: 45.09 kB / 1.026 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001802/0.7605, allocations: 43.84 kB / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.7606, allocations: 43.77 kB / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.998e-05/0.7606, allocations: 8 kB / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.7608, allocations: 35.97 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.7e-05/0.7608, allocations: 23.89 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.075e-05/0.7609, allocations: 73.38 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001736/0.7611, allocations: 97.78 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.7611, allocations: 0 / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.903e-06/0.7611, allocations: 0 / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.819e-06/0.7611, allocations: 0 / 1.026 GB, free: 13.07 MB / 0.7794 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.0006622/0.7618, allocations: 419.1 kB / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.7618, allocations: 8.031 kB / 1.027 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009389/0.7628, allocations: 144.5 kB / 1.027 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001728/0.763, allocations: 188.2 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.7631, allocations: 63.97 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.7631, allocations: 8.375 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005941/0.7637, allocations: 193.6 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.7638, allocations: 0 / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.594e-05/0.7638, allocations: 8 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.7638, allocations: 0 / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007073/0.7645, allocations: 195.8 kB / 1.028 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.7658, allocations: 0.4979 MB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.7669, allocations: 270.3 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003303/0.7672, allocations: 100.9 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.7673, allocations: 0 / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.7673, allocations: 34.56 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/0.7673, allocations: 0 / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.001188/0.7685, allocations: 321.6 kB / 1.029 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.7686, allocations: 59.28 kB / 1.029 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.7687, allocations: 135.4 kB / 1.029 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.872e-05/0.7688, allocations: 25.7 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.724e-05/0.7689, allocations: 116.1 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.7689, allocations: 11.8 kB / 1.029 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/0.7689, allocations: 17.72 kB / 1.029 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.7691, allocations: 322.8 kB / 1.029 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003307/0.7694, allocations: 91.92 kB / 1.03 GB, free: 9.66 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003315/0.7697, allocations: 114.5 kB / 1.03 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006604/0.7704, allocations: 198.4 kB / 1.03 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.7704, allocations: 0 / 1.03 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007421/0.7712, allocations: 241.4 kB / 1.03 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.7712, allocations: 8 kB / 1.03 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.7712, allocations: 0 / 1.03 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.7712, allocations: 7.922 kB / 1.03 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/0.7715, allocations: 47.95 kB / 1.03 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.7715, allocations: 0 / 1.03 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.7718, allocations: 35.81 kB / 1.03 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.7718, allocations: 11.98 kB / 1.03 GB, free: 8.984 MB / 0.7794 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.0001185/0.7719, allocations: 117.8 kB / 1.03 GB, free: 8.859 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.42e-05/0.772, allocations: 7.906 kB / 1.03 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00082/0.7728, allocations: 242.1 kB / 1.03 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.7728, allocations: 4 kB / 1.03 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.7728, allocations: 0 / 1.03 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.7728, allocations: 4 kB / 1.031 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.7731, allocations: 241.9 kB / 1.031 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.7731, allocations: 3.938 kB / 1.031 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.7734, allocations: 39.95 kB / 1.031 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.7734, allocations: 8 kB / 1.031 GB, free: 8.266 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.7734, allocations: 3.938 kB / 1.031 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.7734, allocations: 0 / 1.031 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.7734, allocations: 0 / 1.031 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007591/0.7742, allocations: 327.4 kB / 1.031 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.902e-05/0.7742, allocations: 89 kB / 1.031 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.7743, allocations: 7.875 kB / 1.031 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003252/0.7746, allocations: 43.95 kB / 1.031 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.891e-05/0.7747, allocations: 4 kB / 1.031 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.7747, allocations: 7.984 kB / 1.031 GB, free: 7.758 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.904e-05/0.7748, allocations: 110.5 kB / 1.031 GB, free: 7.652 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7748, allocations: 0 / 1.031 GB, free: 7.652 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002748/0.7751, allocations: 27.84 kB / 1.031 GB, free: 7.625 MB / 0.7794 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.0001496/0.7752, allocations: 103.2 kB / 1.031 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007177/0.7759, allocations: 199.8 kB / 1.032 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.776, allocations: 8 kB / 1.032 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003463/0.7763, allocations: 92.05 kB / 1.032 GB, free: 7.223 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.7767, allocations: 11.98 kB / 1.032 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000736/0.7774, allocations: 335.1 kB / 1.032 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.7777, allocations: 0.7043 MB / 1.033 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.887e-05/0.7778, allocations: 15.42 kB / 1.033 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of SimCode: time 3.7e-07/0.7778, allocations: 0 / 1.033 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of Templates: time 0.003571/0.7814, allocations: 1.587 MB / 1.034 GB, free: 4.527 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches