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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.134/2.134, allocations: 387.1 MB / 399.7 MB, free: 9.453 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009823/0.0009824, allocations: 172.9 kB / 492.3 MB, free: 0.5938 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 221.3 MB / 0.7871 GB, free: 12.86 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008626/0.0008625, allocations: 92.92 kB / 0.9267 GB, free: 13.93 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.993e-05/4.005e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3187, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.074/1.393, allocations: 151 MB / 1.36 GB, free: 19.08 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/1.393, allocations: 70.33 kB / 1.36 GB, free: 19.08 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01431/1.408, allocations: 5.114 MB / 1.365 GB, free: 34.46 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.286e-06/1.408, allocations: 3.875 kB / 1.365 GB, free: 34.46 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.777e-06/1.408, allocations: 7.938 kB / 1.365 GB, free: 34.45 MB / 0.8386 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.0004628/1.408, allocations: 404.8 kB / 1.365 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/1.408, allocations: 7.5 kB / 1.365 GB, free: 34.08 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006573/1.409, allocations: 119.9 kB / 1.365 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/1.409, allocations: 183.6 kB / 1.366 GB, free: 33.85 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.686e-05/1.409, allocations: 72.67 kB / 1.366 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/1.409, allocations: 3.844 kB / 1.366 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002355/1.409, allocations: 119 kB / 1.366 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/1.409, allocations: 0 / 1.366 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/1.409, allocations: 3.312 kB / 1.366 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/1.409, allocations: 3.812 kB / 1.366 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/1.41, allocations: 75.3 kB / 1.366 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/1.411, allocations: 0.4983 MB / 1.366 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/1.411, allocations: 174.9 kB / 1.367 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.586e-05/1.411, allocations: 36.92 kB / 1.367 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/1.411, allocations: 3.812 kB / 1.367 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/1.411, allocations: 37.75 kB / 1.367 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/1.411, allocations: 0 / 1.367 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0002589/1.412, allocations: 104.6 kB / 1.367 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/1.412, allocations: 51.41 kB / 1.367 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/1.412, allocations: 129.3 kB / 1.367 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/1.412, allocations: 25.7 kB / 1.367 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.111e-05/1.412, allocations: 114.5 kB / 1.367 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/1.412, allocations: 22.98 kB / 1.367 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.126e-06/1.412, allocations: 4 kB / 1.367 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.526e-05/1.412, allocations: 326.8 kB / 1.367 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.879e-05/1.412, allocations: 37.09 kB / 1.367 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.887e-05/1.412, allocations: 50.72 kB / 1.367 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.119e-05/1.412, allocations: 35.95 kB / 1.367 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/1.412, allocations: 0 / 1.367 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001766/1.412, allocations: 121.5 kB / 1.368 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/1.412, allocations: 9.734 kB / 1.368 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/1.412, allocations: 0 / 1.368 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/1.412, allocations: 0 / 1.368 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002513/1.413, allocations: 47.16 kB / 1.368 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/1.413, allocations: 0 / 1.368 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/1.413, allocations: 37 kB / 1.368 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/1.413, allocations: 3.953 kB / 1.368 GB, free: 32.63 MB / 0.8386 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 () * 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 7.72e-05/1.413, allocations: 112.5 kB / 1.368 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/1.413, allocations: 7.875 kB / 1.368 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002361/1.413, allocations: 127.9 kB / 1.368 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/1.413, allocations: 0 / 1.368 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.413, allocations: 0 / 1.368 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/1.413, allocations: 0 / 1.368 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001969/1.413, allocations: 239.7 kB / 1.368 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/1.413, allocations: 3.906 kB / 1.368 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/1.414, allocations: 45.66 kB / 1.368 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/1.414, allocations: 3.938 kB / 1.368 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/1.414, allocations: 4 kB / 1.368 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/1.414, allocations: 0 / 1.368 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.414, allocations: 0 / 1.368 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/1.414, allocations: 208.2 kB / 1.368 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.681e-05/1.414, allocations: 81.02 kB / 1.368 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/1.414, allocations: 10.86 kB / 1.368 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002895/1.414, allocations: 41.5 kB / 1.369 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.557e-05/1.414, allocations: 6.906 kB / 1.369 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/1.414, allocations: 6.688 kB / 1.369 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.008e-05/1.414, allocations: 107.6 kB / 1.369 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.21e-07/1.414, allocations: 0 / 1.369 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002313/1.415, allocations: 26.73 kB / 1.369 GB, free: 31.94 MB / 0.8386 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 () * 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.0001442/1.415, allocations: 100.5 kB / 1.369 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001792/1.415, allocations: 85.91 kB / 1.369 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/1.415, allocations: 3.938 kB / 1.369 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.689e-05/1.415, allocations: 39.53 kB / 1.369 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/1.415, allocations: 16.38 kB / 1.369 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003318/1.416, allocations: 150.3 kB / 1.369 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/1.416, allocations: 0.7022 MB / 1.37 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.554e-05/1.416, allocations: 19.67 kB / 1.37 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.748e-05/1.416, allocations: 13.89 kB / 1.37 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of SimCode: time 3.81e-07/1.416, allocations: 0 / 1.37 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of Templates: time 0.003551/1.42, allocations: 1.314 MB / 1.371 GB, free: 30.92 MB / 0.8386 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","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches