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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001157/0.001157, allocations: 107.1 kB / 16.41 MB, free: 5.984 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.001237/0.001237, allocations: 186.5 kB / 17.34 MB, free: 5.582 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.51/2.51, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 60.12 kB / 1.019 GB, free: 9.449 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.901/0.9025, allocations: 151.6 MB / 1.167 GB, free: 3.906 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003458/0.906, allocations: 1.772 MB / 1.169 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001339/0.9073, allocations: 0.6514 MB / 1.17 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.9075, allocations: 4 kB / 1.17 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 5.519e-05/0.9075, allocations: 11.86 kB / 1.17 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.474e-05/0.9077, allocations: 15.81 kB / 1.17 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006412/0.9083, allocations: 168.2 kB / 1.17 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.9085, allocations: 131.6 kB / 1.17 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.9087, allocations: 41.11 kB / 1.17 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.9089, allocations: 63.77 kB / 1.17 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.909, allocations: 51.77 kB / 1.17 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.026e-05/0.909, allocations: 8 kB / 1.17 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.9092, allocations: 51.95 kB / 1.17 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.748e-05/0.9092, allocations: 31.91 kB / 1.17 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.891e-05/0.9093, allocations: 51.72 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.9095, allocations: 148 kB / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.9096, allocations: 0 / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.563e-06/0.9096, allocations: 4 kB / 1.17 GB, free: 0.7031 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.866e-06/0.9096, allocations: 0 / 1.17 GB, free: 0.7031 MB / 0.8887 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.0006802/0.9103, allocations: 442.8 kB / 1.171 GB, free: 228 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.9103, allocations: 8.922 kB / 1.171 GB, free: 220 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008902/0.9112, allocations: 112.7 kB / 1.171 GB, free: 108 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.9114, allocations: 190.3 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.9115, allocations: 63.97 kB / 1.171 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.894e-05/0.9115, allocations: 8.375 kB / 1.171 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005373/0.9121, allocations: 173.7 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.9121, allocations: 3.938 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.9121, allocations: 3.984 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.9121, allocations: 4 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006021/0.9127, allocations: 159.8 kB / 1.172 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.9139, allocations: 497.5 kB / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.915, allocations: 218.3 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003048/0.9153, allocations: 84.89 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.9153, allocations: 0 / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.9153, allocations: 34.56 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 9.72e-07/0.9153, allocations: 0 / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.001021/0.9164, allocations: 269.3 kB / 1.173 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.9164, allocations: 51.41 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.9165, allocations: 137.8 kB / 1.173 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.9166, allocations: 25.7 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.228e-05/0.9167, allocations: 116.2 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.857e-05/0.9167, allocations: 23.73 kB / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.775e-05/0.9168, allocations: 25.7 kB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.9169, allocations: 322.8 kB / 1.173 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003059/0.9172, allocations: 75.91 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003049/0.9175, allocations: 94.48 kB / 1.173 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006018/0.9181, allocations: 162.4 kB / 1.174 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.9181, allocations: 0 / 1.174 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006765/0.9188, allocations: 205.5 kB / 1.174 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.9188, allocations: 8 kB / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.9188, allocations: 0 / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.9189, allocations: 3.938 kB / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002625/0.9191, allocations: 35.95 kB / 1.174 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.9191, allocations: 0 / 1.174 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/0.9193, allocations: 27.95 kB / 1.174 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/0.9194, allocations: 4 kB / 1.174 GB, free: 12.93 MB / 0.9044 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.0001102/0.9195, allocations: 125.7 kB / 1.174 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/0.9195, allocations: 7.953 kB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007211/0.9203, allocations: 214.1 kB / 1.174 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.9203, allocations: 384 / 1.174 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.9203, allocations: 3.984 kB / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.9203, allocations: 0 / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.9205, allocations: 230.4 kB / 1.174 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.9206, allocations: 0 / 1.174 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002333/0.9208, allocations: 31.95 kB / 1.174 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.9208, allocations: 4 kB / 1.174 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.9208, allocations: 15.92 kB / 1.174 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.9208, allocations: 0 / 1.174 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.9208, allocations: 0 / 1.174 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006952/0.9215, allocations: 287.3 kB / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.303e-05/0.9216, allocations: 81.06 kB / 1.175 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.9216, allocations: 3.938 kB / 1.175 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003072/0.9219, allocations: 31.95 kB / 1.175 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.777e-05/0.922, allocations: 7.984 kB / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.922, allocations: 7.984 kB / 1.175 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.653e-05/0.9221, allocations: 109.5 kB / 1.175 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9221, allocations: 0 / 1.175 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002686/0.9224, allocations: 23.95 kB / 1.175 GB, free: 11.67 MB / 0.9044 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.0001313/0.9225, allocations: 99.25 kB / 1.175 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006804/0.9232, allocations: 163.8 kB / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.9232, allocations: 4 kB / 1.175 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003138/0.9236, allocations: 83.84 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.9239, allocations: 11.94 kB / 1.175 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006675/0.9246, allocations: 289.1 kB / 1.176 GB, free: 10.99 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.9248, allocations: 0.6963 MB / 1.176 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.923e-05/0.9249, allocations: 15.42 kB / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of SimCode: time 5.21e-07/0.9249, allocations: 0 / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of Templates: time 0.003462/0.9284, allocations: 1.622 MB / 1.178 GB, free: 8.645 MB / 0.9044 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