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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.393/2.393, allocations: 390.3 MB / 402.8 MB, free: 6.656 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.001145/0.001145, allocations: 188.1 kB / 496.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 221.3 MB / 0.7915 GB, free: 5.426 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.0008432/0.0008436, allocations: 87.94 kB / 0.9317 GB, free: 5.75 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.29e-05/4.304e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3163, allocations: 143 MB / 1.219 GB, free: 13.53 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.06/1.376, allocations: 151.8 MB / 1.367 GB, free: 2.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/1.376, allocations: 78.58 kB / 1.367 GB, free: 2.137 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01487/1.391, allocations: 5.116 MB / 1.372 GB, free: 13.78 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.242e-06/1.391, allocations: 4 kB / 1.372 GB, free: 13.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.634e-06/1.391, allocations: 0 / 1.372 GB, free: 13.77 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.0005101/1.392, allocations: 405.2 kB / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/1.392, allocations: 12.03 kB / 1.372 GB, free: 13.33 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007105/1.393, allocations: 119.6 kB / 1.373 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/1.393, allocations: 183.5 kB / 1.373 GB, free: 13 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/1.393, allocations: 70.58 kB / 1.373 GB, free: 12.92 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/1.393, allocations: 7.25 kB / 1.373 GB, free: 12.91 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/1.393, allocations: 113.5 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/1.393, allocations: 4 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/1.393, allocations: 3.812 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/1.393, allocations: 3.953 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/1.393, allocations: 75.8 kB / 1.373 GB, free: 12.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/1.395, allocations: 0.4965 MB / 1.374 GB, free: 12.28 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005971/1.395, allocations: 160.7 kB / 1.374 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/1.395, allocations: 42.34 kB / 1.374 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.748e-05/1.395, allocations: 11.31 kB / 1.374 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/1.395, allocations: 34.5 kB / 1.374 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/1.395, allocations: 0 / 1.374 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0002862/1.396, allocations: 101.9 kB / 1.374 GB, free: 11.98 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/1.396, allocations: 55.34 kB / 1.374 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/1.396, allocations: 130.3 kB / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/1.396, allocations: 29.08 kB / 1.374 GB, free: 11.76 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.942e-05/1.396, allocations: 113.6 kB / 1.374 GB, free: 11.65 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.353e-05/1.396, allocations: 19.73 kB / 1.374 GB, free: 11.63 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.416e-06/1.396, allocations: 3.812 kB / 1.374 GB, free: 11.63 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.00012/1.396, allocations: 322.4 kB / 1.374 GB, free: 11.31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.453e-05/1.396, allocations: 31.62 kB / 1.375 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.074e-05/1.396, allocations: 57 kB / 1.375 GB, free: 11.24 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.616e-05/1.396, allocations: 33.42 kB / 1.375 GB, free: 11.22 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/1.396, allocations: 4 kB / 1.375 GB, free: 11.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001989/1.397, allocations: 119.3 kB / 1.375 GB, free: 11.12 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/1.397, allocations: 8 kB / 1.375 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/1.397, allocations: 0 / 1.375 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/1.397, allocations: 3.938 kB / 1.375 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002725/1.397, allocations: 47.14 kB / 1.375 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/1.397, allocations: 4 kB / 1.375 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001925/1.397, allocations: 39.81 kB / 1.375 GB, free: 11.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/1.397, allocations: 4 kB / 1.375 GB, free: 11.02 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.755e-05/1.397, allocations: 108.6 kB / 1.375 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.594e-05/1.397, allocations: 7.906 kB / 1.375 GB, free: 10.9 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002552/1.397, allocations: 129.9 kB / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/1.397, allocations: 0 / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/1.398, allocations: 0 / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.398, allocations: 0 / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002421/1.398, allocations: 241.3 kB / 1.375 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/1.398, allocations: 3.984 kB / 1.375 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/1.398, allocations: 43.95 kB / 1.375 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/1.398, allocations: 3.984 kB / 1.375 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/1.398, allocations: 4 kB / 1.375 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/1.398, allocations: 0 / 1.375 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/1.398, allocations: 0 / 1.375 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/1.398, allocations: 208.1 kB / 1.376 GB, free: 10.29 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/1.398, allocations: 85.02 kB / 1.376 GB, free: 10.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/1.398, allocations: 7.938 kB / 1.376 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/1.399, allocations: 42.83 kB / 1.376 GB, free: 10.14 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/1.399, allocations: 3.984 kB / 1.376 GB, free: 10.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/1.399, allocations: 12.17 kB / 1.376 GB, free: 10.13 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.607e-05/1.399, allocations: 110.7 kB / 1.376 GB, free: 10.03 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.399, allocations: 0 / 1.376 GB, free: 10.03 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002288/1.399, allocations: 23.91 kB / 1.376 GB, free: 10.01 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.0001489/1.399, allocations: 95.25 kB / 1.376 GB, free: 9.906 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001997/1.399, allocations: 91.67 kB / 1.376 GB, free: 9.848 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.399, allocations: 0 / 1.376 GB, free: 9.848 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.94e-05/1.4, allocations: 46.48 kB / 1.376 GB, free: 9.816 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/1.4, allocations: 9.688 kB / 1.376 GB, free: 9.809 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003389/1.4, allocations: 139.7 kB / 1.376 GB, free: 9.668 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/1.4, allocations: 0.7097 MB / 1.377 GB, free: 8.934 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.92e-05/1.4, allocations: 15.94 kB / 1.377 GB, free: 8.914 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.71e-05/1.401, allocations: 15.42 kB / 1.377 GB, free: 8.898 MB / 0.8386 GB Notification: Performance of SimCode: time 3.4e-07/1.401, allocations: 0 / 1.377 GB, free: 8.898 MB / 0.8386 GB Notification: Performance of Templates: time 0.003525/1.404, allocations: 1.316 MB / 1.378 GB, free: 7.598 MB / 0.8386 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