Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y|ex|der.y_comp.|der.y.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y|ex|der.y_comp.|der.y.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.484/1.484, allocations: 249.5 MB / 257 MB, free: 6.855 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 180.8 kB / 316.3 MB, free: 3.32 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.757/1.757, allocations: 205.3 MB / 0.5671 GB, free: 15.86 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009202/0.0009202, allocations: 82.55 kB / 0.6714 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.256e-05/2.258e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2468, allocations: 106.4 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.002/1.249, allocations: 131.4 MB / 1.014 GB, free: 6.34 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/1.249, allocations: 72.7 kB / 1.014 GB, free: 6.297 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.005848/1.255, allocations: 2.037 MB / 1.016 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.823e-06/1.255, allocations: 0 / 1.016 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.404e-06/1.255, allocations: 0 / 1.016 GB, free: 4.598 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003573/1.256, allocations: 325.9 kB / 1.016 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.595e-05/1.256, allocations: 15.97 kB / 1.016 GB, free: 4.223 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.256e-05/1.256, allocations: 0 / 1.016 GB, free: 4.223 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/1.256, allocations: 167 kB / 1.016 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/1.256, allocations: 0 / 1.016 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.621e-05/1.256, allocations: 4 kB / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.36e-05/1.256, allocations: 15.36 kB / 1.016 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.261e-05/1.256, allocations: 37.69 kB / 1.016 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/1.256, allocations: 0 / 1.016 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/1.256, allocations: 0 / 1.016 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/1.256, allocations: 0 / 1.016 GB, free: 3.961 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001893/1.256, allocations: 141.6 kB / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.442e-05/1.256, allocations: 45.52 kB / 1.016 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.868e-05/1.257, allocations: 16.48 kB / 1.016 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/1.257, allocations: 92.97 kB / 1.016 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/1.257, allocations: 34.56 kB / 1.017 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/1.257, allocations: 0 / 1.017 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.001218/1.258, allocations: 446.7 kB / 1.017 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/1.258, allocations: 55.41 kB / 1.017 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.556e-05/1.258, allocations: 92.38 kB / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/1.258, allocations: 25.7 kB / 1.017 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.326e-05/1.258, allocations: 80.14 kB / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.147e-05/1.258, allocations: 22.47 kB / 1.017 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/1.258, allocations: 0 / 1.017 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001143/1.258, allocations: 314.8 kB / 1.017 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.481e-05/1.258, allocations: 11.12 kB / 1.018 GB, free: 2.469 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.667e-05/1.258, allocations: 11.5 kB / 1.018 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.879e-05/1.258, allocations: 27.56 kB / 1.018 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/1.258, allocations: 0 / 1.018 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001051/1.259, allocations: 64.39 kB / 1.018 GB, free: 2.375 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/1.259, allocations: 4 kB / 1.018 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/1.259, allocations: 4 kB / 1.018 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/1.259, allocations: 0 / 1.018 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.914e-05/1.259, allocations: 12 kB / 1.018 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/1.259, allocations: 0 / 1.018 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.239e-05/1.259, allocations: 0 / 1.018 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.325e-06/1.259, allocations: 7.984 kB / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * 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 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.044e-05/1.259, allocations: 108.7 kB / 1.018 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.044e-05/1.259, allocations: 7.891 kB / 1.018 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/1.259, allocations: 72.8 kB / 1.018 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/1.259, allocations: 0 / 1.018 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/1.259, allocations: 4 kB / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/1.259, allocations: 0 / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/1.259, allocations: 144.7 kB / 1.018 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/1.259, allocations: 4 kB / 1.018 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.961e-05/1.259, allocations: 15.98 kB / 1.018 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/1.259, allocations: 0 / 1.018 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/1.259, allocations: 8.203 kB / 1.018 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/1.259, allocations: 0 / 1.018 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/1.259, allocations: 4 kB / 1.018 GB, free: 1.945 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001913/1.26, allocations: 114.3 kB / 1.018 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.837e-05/1.26, allocations: 81.02 kB / 1.018 GB, free: 1.73 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/1.26, allocations: 4.062 kB / 1.018 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.185e-05/1.26, allocations: 7.984 kB / 1.018 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.552e-05/1.26, allocations: 3.984 kB / 1.018 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/1.26, allocations: 7 kB / 1.018 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.787e-05/1.26, allocations: 75.28 kB / 1.018 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.2e-07/1.26, allocations: 0 / 1.018 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002184/1.26, allocations: 35.94 kB / 1.018 GB, free: 1.602 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0002713/1.26, allocations: 147.2 kB / 1.018 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001132/1.26, allocations: 34.98 kB / 1.018 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.26, allocations: 0 / 1.018 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.992e-05/1.26, allocations: 22.62 kB / 1.018 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/1.261, allocations: 1.219 kB / 1.018 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002939/1.261, allocations: 93.56 kB / 1.019 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/1.261, allocations: 0.6807 MB / 1.019 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.282e-05/1.261, allocations: 12.17 kB / 1.019 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.006e-05/1.261, allocations: 11.44 kB / 1.019 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of SimCode: time 2.4e-07/1.261, allocations: 0 / 1.019 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of Templates: time 0.002754/1.264, allocations: 0.7157 MB / 1.02 GB, free: 15.89 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches