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.076/2.076, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.0009921/0.0009921, allocations: 180.7 kB / 487.4 MB, free: 5.039 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.318/1.318, allocations: 221.5 MB / 0.7824 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008289/0.0008293, allocations: 97.41 kB / 0.9219 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.483e-05/1.486e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2442, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7945/1.039, allocations: 150.3 MB / 1.353 GB, free: 18.3 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/1.039, allocations: 72.33 kB / 1.353 GB, free: 18.3 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01495/1.054, allocations: 5.088 MB / 1.358 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.794e-06/1.054, allocations: 3.938 kB / 1.358 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.779e-06/1.054, allocations: 3.844 kB / 1.358 GB, free: 33.68 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.0004753/1.054, allocations: 406.3 kB / 1.358 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/1.055, allocations: 12.06 kB / 1.358 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006693/1.055, allocations: 116.1 kB / 1.358 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/1.055, allocations: 188.1 kB / 1.358 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.194e-05/1.055, allocations: 60.55 kB / 1.359 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/1.055, allocations: 11.66 kB / 1.359 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001495/1.056, allocations: 72.61 kB / 1.359 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001729/1.056, allocations: 105.5 kB / 1.359 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/1.056, allocations: 0 / 1.359 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/1.056, allocations: 0.75 kB / 1.359 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/1.056, allocations: 7.828 kB / 1.359 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009438/1.057, allocations: 478.5 kB / 1.359 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005348/1.057, allocations: 160.2 kB / 1.359 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.787e-05/1.057, allocations: 40.86 kB / 1.359 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/1.057, allocations: 0 / 1.359 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/1.057, allocations: 38.38 kB / 1.359 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 7.72e-07/1.057, allocations: 0 / 1.359 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0002219/1.058, allocations: 115.1 kB / 1.36 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.726e-05/1.058, allocations: 51.41 kB / 1.36 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.633e-05/1.058, allocations: 119.5 kB / 1.36 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/1.058, allocations: 25.7 kB / 1.36 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.985e-05/1.058, allocations: 113.1 kB / 1.36 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/1.058, allocations: 15.62 kB / 1.36 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.117e-06/1.058, allocations: 0 / 1.36 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001003/1.058, allocations: 325.2 kB / 1.36 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.055e-05/1.058, allocations: 32.05 kB / 1.36 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.519e-05/1.058, allocations: 55.36 kB / 1.36 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.719e-05/1.058, allocations: 29.75 kB / 1.36 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/1.058, allocations: 0 / 1.36 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001441/1.058, allocations: 117.3 kB / 1.36 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/1.058, allocations: 3.844 kB / 1.36 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/1.058, allocations: 3.812 kB / 1.36 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/1.058, allocations: 4.062 kB / 1.36 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/1.059, allocations: 47.83 kB / 1.36 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/1.059, allocations: 0 / 1.36 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/1.059, allocations: 44.34 kB / 1.36 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/1.059, allocations: 0 / 1.36 GB, free: 31.89 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.003e-05/1.059, allocations: 111.3 kB / 1.361 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/1.059, allocations: 7.781 kB / 1.361 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/1.059, allocations: 116.2 kB / 1.361 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/1.059, allocations: 0 / 1.361 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/1.059, allocations: 4 kB / 1.361 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/1.059, allocations: 3.094 kB / 1.361 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/1.059, allocations: 214.7 kB / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/1.059, allocations: 0 / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002159/1.06, allocations: 44.16 kB / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/1.06, allocations: 0 / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/1.06, allocations: 0 / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/1.06, allocations: 4 kB / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/1.06, allocations: 2.016 kB / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001658/1.06, allocations: 203.2 kB / 1.361 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.088e-05/1.06, allocations: 84.92 kB / 1.361 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/1.06, allocations: 1.781 kB / 1.361 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002918/1.06, allocations: 42.16 kB / 1.361 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.668e-05/1.06, allocations: 11.34 kB / 1.361 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/1.06, allocations: 6.672 kB / 1.361 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.387e-05/1.06, allocations: 102.3 kB / 1.361 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.06, allocations: 0 / 1.361 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002288/1.061, allocations: 23.28 kB / 1.361 GB, free: 31.24 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.0001046/1.061, allocations: 107.8 kB / 1.362 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001429/1.061, allocations: 79.53 kB / 1.362 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/1.061, allocations: 0 / 1.362 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.593e-05/1.061, allocations: 42.42 kB / 1.362 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/1.061, allocations: 13.27 kB / 1.362 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002617/1.061, allocations: 140.9 kB / 1.362 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/1.062, allocations: 0.7102 MB / 1.362 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.313e-05/1.062, allocations: 17.03 kB / 1.362 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.915e-05/1.062, allocations: 13.03 kB / 1.363 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.062, allocations: 0 / 1.363 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of Templates: time 0.002707/1.064, allocations: 1.245 MB / 1.364 GB, free: 30.23 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