Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.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.IsMonotonic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x_incStrict.1.|x_incStrict.2.|x_incStrict.3.|x_notMon.1.|x_notMon.2.|x_notMon.3.|x_incWeak.1.|x_incWeak.2.|x_incWeak.3.|x_incWeak.4.|x_notWeak.1.|x_notWeak.2.|x_notWeak.3.|x_notWeak.4.|x_decStrict.1.|x_decStrict.2.|x_decStrict.3.|x_decWeak.1.|x_decWeak.2.|x_decWeak.3.|x_decWeak.4.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic") translateModel(Buildings.Utilities.Math.Functions.Examples.IsMonotonic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x_incStrict.1.|x_incStrict.2.|x_incStrict.3.|x_notMon.1.|x_notMon.2.|x_notMon.3.|x_incWeak.1.|x_incWeak.2.|x_incWeak.3.|x_incWeak.4.|x_notWeak.1.|x_notWeak.2.|x_notWeak.3.|x_notWeak.4.|x_decStrict.1.|x_decStrict.2.|x_decStrict.3.|x_decWeak.1.|x_decWeak.2.|x_decWeak.3.|x_decWeak.4.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.572/1.572, allocations: 249.3 MB / 261.8 MB, free: 5.871 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.001196/0.001196, allocations: 176.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.998/1.998, allocations: 205.2 MB / 0.572 GB, free: 10.59 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.0009261/0.000926, allocations: 99.72 kB / 0.6764 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.57e-05/3.572e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2266, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8056/1.032, allocations: 131.4 MB / 1.02 GB, free: 3.348 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/1.033, allocations: 79.12 kB / 1.02 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00302/1.036, allocations: 1.172 MB / 1.021 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.445e-06/1.036, allocations: 0 / 1.021 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.909e-06/1.036, allocations: 0 / 1.021 GB, free: 2.207 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0003388/1.036, allocations: 345.3 kB / 1.022 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/1.036, allocations: 8.031 kB / 1.022 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.959e-05/1.036, allocations: 7.906 kB / 1.022 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/1.036, allocations: 171 kB / 1.022 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/1.036, allocations: 3.125 kB / 1.022 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/1.036, allocations: 4 kB / 1.022 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002675/1.037, allocations: 167.7 kB / 1.022 GB, free: 1.43 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/1.037, allocations: 0 / 1.022 GB, free: 1.43 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/1.037, allocations: 7.984 kB / 1.022 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.557e-05/1.037, allocations: 23.91 kB / 1.022 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.618e-05/1.037, allocations: 41.23 kB / 1.022 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007501/1.037, allocations: 0.8935 MB / 1.023 GB, free: 444 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.782e-05/1.038, allocations: 169.1 kB / 1.023 GB, free: 264 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.123e-05/1.038, allocations: 83.2 kB / 1.023 GB, free: 180 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/1.038, allocations: 75.28 kB / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.858e-05/1.038, allocations: 109.8 kB / 1.023 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=0): time 1.323e-06/1.038, allocations: 0 / 1.023 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of matching and sorting (n=0): time 8.88e-05/1.038, allocations: 44.14 kB / 1.023 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001988/1.038, allocations: 395 kB / 1.024 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/1.038, allocations: 154 kB / 1.024 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/1.038, allocations: 29.7 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.086e-05/1.038, allocations: 150.6 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 8.787e-06/1.038, allocations: 7.547 kB / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-06/1.038, allocations: 0 / 1.024 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001237/1.038, allocations: 322.4 kB / 1.024 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.94e-05/1.039, allocations: 28.05 kB / 1.024 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/1.039, allocations: 217.5 kB / 1.025 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.496e-05/1.039, allocations: 66.95 kB / 1.025 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/1.039, allocations: 4 kB / 1.025 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002888/1.039, allocations: 178.6 kB / 1.025 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/1.039, allocations: 7.984 kB / 1.025 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/1.039, allocations: 8.656 kB / 1.025 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/1.039, allocations: 8 kB / 1.025 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/1.039, allocations: 43.86 kB / 1.025 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/1.039, allocations: 11.94 kB / 1.025 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.957e-05/1.039, allocations: 19.75 kB / 1.025 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/1.039, allocations: 15.94 kB / 1.025 GB, free: 14.19 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001245/1.04, allocations: 199.7 kB / 1.025 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.53e-05/1.04, allocations: 112.8 kB / 1.025 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.77e-05/1.04, allocations: 116.4 kB / 1.025 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-05/1.04, allocations: 188.2 kB / 1.026 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.125e-05/1.04, allocations: 176.6 kB / 1.026 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.165e-05/1.04, allocations: 180.3 kB / 1.026 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000256/1.04, allocations: 430 kB / 1.026 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.909e-05/1.04, allocations: 101 kB / 1.026 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.139e-05/1.04, allocations: 108.9 kB / 1.027 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.467e-05/1.04, allocations: 180.1 kB / 1.027 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.348e-05/1.041, allocations: 185.3 kB / 1.027 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.684e-05/1.041, allocations: 187.5 kB / 1.027 GB, free: 11.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.199e-05/1.041, allocations: 176.3 kB / 1.027 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001782/1.041, allocations: 314.5 kB / 1.028 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/1.041, allocations: 193.9 kB / 1.028 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/1.041, allocations: 187.3 kB / 1.028 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.18e-05/1.041, allocations: 101.3 kB / 1.028 GB, free: 10.94 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.777e-05/1.041, allocations: 184.2 kB / 1.028 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.219e-05/1.041, allocations: 109 kB / 1.028 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.369e-05/1.041, allocations: 120 kB / 1.028 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.41e-07/1.041, allocations: 0 / 1.028 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003188/1.042, allocations: 23.06 kB / 1.028 GB, free: 10.52 MB / 0.6511 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 (0): * Single equations (assignments): 0 * 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.0002521/1.042, allocations: 189.8 kB / 1.029 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000149/1.042, allocations: 75.16 kB / 1.029 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/1.042, allocations: 3.938 kB / 1.029 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 1.733e-06/1.042, allocations: 0 / 1.029 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/1.043, allocations: 0.5386 MB / 1.029 GB, free: 9.715 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002796/1.043, allocations: 184.2 kB / 1.029 GB, free: 9.516 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003413/1.043, allocations: 0.6971 MB / 1.03 GB, free: 8.793 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001667/1.043, allocations: 56.72 kB / 1.03 GB, free: 8.738 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.825e-05/1.043, allocations: 11.44 kB / 1.03 GB, free: 8.727 MB / 0.6511 GB Notification: Performance of SimCode: time 2.31e-07/1.043, allocations: 0 / 1.03 GB, free: 8.727 MB / 0.6511 GB Notification: Performance of Templates: time 0.004246/1.048, allocations: 1.7 MB / 1.032 GB, free: 7.066 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_IsMonotonic.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.IsMonotonic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches