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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001079/0.001079, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001247/0.001247, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.851/2.851, allocations: 436.5 MB / 0.7104 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005024/0.0005026, allocations: 12 kB / 0.8708 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9165/0.9171, allocations: 153.6 MB / 1.021 GB, free: 1.152 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002479/0.9196, allocations: 1.447 MB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.9207, allocations: 0.5974 MB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.079e-05/0.9208, allocations: 0 / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.496e-05/0.9208, allocations: 3.938 kB / 1.023 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.211e-05/0.9209, allocations: 23.95 kB / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006325/0.9215, allocations: 146.3 kB / 1.023 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001238/0.9217, allocations: 75.78 kB / 1.023 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.9218, allocations: 45.25 kB / 1.023 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.922, allocations: 43.83 kB / 1.023 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.9222, allocations: 35.84 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.9222, allocations: 4 kB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.9223, allocations: 39.91 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.119e-05/0.9223, allocations: 23.97 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.896e-05/0.9224, allocations: 37.64 kB / 1.023 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.9225, allocations: 85.8 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.9226, allocations: 0 / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.014e-06/0.9226, allocations: 0 / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.369e-06/0.9226, allocations: 4 kB / 1.023 GB, free: 14.53 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.001023/0.9236, allocations: 424.6 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.9237, allocations: 11.98 kB / 1.024 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009973/0.9247, allocations: 147.6 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.9248, allocations: 174.9 kB / 1.024 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.9249, allocations: 75.28 kB / 1.024 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.925, allocations: 12 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000542/0.9255, allocations: 185.5 kB / 1.024 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.9255, allocations: 0 / 1.024 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.9256, allocations: 7.938 kB / 1.024 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.9256, allocations: 4 kB / 1.024 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006842/0.9263, allocations: 183.8 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001225/0.9275, allocations: 0.4979 MB / 1.025 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.9286, allocations: 270.3 kB / 1.025 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-05/0.9286, allocations: 11.94 kB / 1.025 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.9287, allocations: 30.56 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.392e-06/0.9287, allocations: 0 / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.00106/0.9297, allocations: 313.6 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.9298, allocations: 59.41 kB / 1.026 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.9299, allocations: 131.7 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.896e-05/0.93, allocations: 33.7 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.9301, allocations: 108.1 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.873e-05/0.9301, allocations: 19.8 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-06/0.9302, allocations: 0 / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.9303, allocations: 314.8 kB / 1.026 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003429/0.9306, allocations: 99.91 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003204/0.931, allocations: 106.5 kB / 1.026 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.9313, allocations: 95.92 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.9313, allocations: 0 / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006891/0.932, allocations: 245.5 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.932, allocations: 9.812 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.932, allocations: 3.938 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.9321, allocations: 64 / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.9323, allocations: 51.95 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.9323, allocations: 0 / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.9326, allocations: 39.84 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.9326, allocations: 7.984 kB / 1.027 GB, free: 10.69 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001871/0.9328, allocations: 117.8 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.835e-05/0.9328, allocations: 11.86 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000731/0.9336, allocations: 242.2 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.9336, allocations: 4 kB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.9336, allocations: 0 / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.9336, allocations: 0 / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.9339, allocations: 238 kB / 1.027 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.9339, allocations: 0 / 1.027 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002235/0.9341, allocations: 43.91 kB / 1.027 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.9341, allocations: 4 kB / 1.027 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.9341, allocations: 0 / 1.027 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.9341, allocations: 3.984 kB / 1.027 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.9342, allocations: 4 kB / 1.027 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007136/0.9349, allocations: 315.2 kB / 1.028 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.588e-05/0.9349, allocations: 92.91 kB / 1.028 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/0.935, allocations: 11.94 kB / 1.028 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/0.9353, allocations: 43.95 kB / 1.028 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/0.9353, allocations: 4 kB / 1.028 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.9353, allocations: 7.984 kB / 1.028 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.719e-05/0.9354, allocations: 105 kB / 1.028 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.81e-07/0.9354, allocations: 0 / 1.028 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002589/0.9357, allocations: 27.94 kB / 1.028 GB, free: 9.332 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001563/0.9358, allocations: 95.25 kB / 1.028 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000744/0.9366, allocations: 203.9 kB / 1.028 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.9366, allocations: 0 / 1.028 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003774/0.937, allocations: 104.2 kB / 1.028 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002173/0.9372, allocations: 7.984 kB / 1.028 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007657/0.938, allocations: 309.3 kB / 1.029 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.9383, allocations: 0.7043 MB / 1.029 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001108/0.9385, allocations: 16.19 kB / 1.029 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.811e-05/0.9385, allocations: 15.42 kB / 1.029 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.9385, allocations: 0 / 1.029 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of Templates: time 0.003911/0.9424, allocations: 1.295 MB / 1.031 GB, free: 6.547 MB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches