Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality.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.Diagnostics.Validation.CheckEquality,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cheEqu.y|cheEqu.u1|cheEqu.u2",fileNamePrefix="Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality") translateModel(Buildings.Utilities.Diagnostics.Validation.CheckEquality,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cheEqu.y|cheEqu.u1|cheEqu.u2",fileNamePrefix="Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.27/2.27, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.001121/0.001121, allocations: 182.9 kB / 0.4902 GB, free: 2.242 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.459/1.459, allocations: 223.1 MB / 0.7992 GB, free: 15.68 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.001144/0.001144, allocations: 98.38 kB / 0.9396 GB, free: 2.859 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003996/0.0003996, allocations: 7.938 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3252, allocations: 143 MB / 1.229 GB, free: 85.53 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2466/0.5718, allocations: 150.7 MB / 1.376 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.5721, allocations: 75.95 kB / 1.376 GB, free: 14.52 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.00397/0.5761, allocations: 1.479 MB / 1.378 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5761, allocations: 4 kB / 1.378 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.999e-06/0.5762, allocations: 0 / 1.378 GB, free: 13.03 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003902/0.5766, allocations: 355.7 kB / 1.378 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.5766, allocations: 8.562 kB / 1.378 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/0.5767, allocations: 15.89 kB / 1.378 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.5768, allocations: 175 kB / 1.378 GB, free: 12.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.5768, allocations: 0 / 1.378 GB, free: 12.4 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.5768, allocations: 8 kB / 1.378 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.577, allocations: 65.61 kB / 1.379 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.577, allocations: 7.922 kB / 1.379 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.5771, allocations: 4 kB / 1.379 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.5771, allocations: 0 / 1.379 GB, free: 12.31 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.5773, allocations: 51.97 kB / 1.379 GB, free: 12.26 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004652/0.5777, allocations: 304.7 kB / 1.379 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.5781, allocations: 78.47 kB / 1.379 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.5781, allocations: 0 / 1.379 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.5781, allocations: 30.56 kB / 1.379 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 9.01e-07/0.5781, allocations: 0 / 1.379 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0003739/0.5785, allocations: 105.6 kB / 1.379 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.5786, allocations: 51.41 kB / 1.379 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.035e-05/0.5787, allocations: 113 kB / 1.379 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.5787, allocations: 29.7 kB / 1.379 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.126e-05/0.5787, allocations: 92.12 kB / 1.379 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.5788, allocations: 11.84 kB / 1.379 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-06/0.5788, allocations: 0 / 1.379 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.5789, allocations: 314.8 kB / 1.38 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.179e-05/0.579, allocations: 23.98 kB / 1.38 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.091e-05/0.5791, allocations: 23.98 kB / 1.38 GB, free: 11 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.368e-05/0.5792, allocations: 16 kB / 1.38 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.5792, allocations: 3.938 kB / 1.38 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002019/0.5794, allocations: 77.56 kB / 1.38 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.5794, allocations: 12.78 kB / 1.38 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.5794, allocations: 4 kB / 1.38 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.5795, allocations: 3.938 kB / 1.38 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.395e-05/0.5795, allocations: 11.98 kB / 1.38 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.5796, allocations: 3.953 kB / 1.38 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.109e-05/0.5796, allocations: 12 kB / 1.38 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.824e-06/0.5796, allocations: 0 / 1.38 GB, free: 10.85 MB / 0.8855 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.513e-05/0.5797, allocations: 109.8 kB / 1.38 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.539e-05/0.5798, allocations: 11.89 kB / 1.38 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.815e-05/0.5798, allocations: 11.91 kB / 1.38 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.5798, allocations: 3.938 kB / 1.38 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.5798, allocations: 0 / 1.38 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.5798, allocations: 3.953 kB / 1.38 GB, free: 10.7 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.58, allocations: 173.7 kB / 1.38 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.58, allocations: 0 / 1.38 GB, free: 10.48 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.397e-05/0.5801, allocations: 12 kB / 1.38 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.5801, allocations: 4 kB / 1.38 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.5801, allocations: 0 / 1.38 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.5801, allocations: 7.969 kB / 1.38 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5801, allocations: 0 / 1.38 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002466/0.5804, allocations: 179.7 kB / 1.38 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.559e-05/0.5804, allocations: 85.11 kB / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.5804, allocations: 4.031 kB / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.574e-05/0.5805, allocations: 7.984 kB / 1.38 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.885e-05/0.5806, allocations: 4 kB / 1.38 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.5806, allocations: 0 / 1.38 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.182e-05/0.5806, allocations: 91.27 kB / 1.381 GB, free: 10.06 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5806, allocations: 0 / 1.381 GB, free: 10.06 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0001997/0.5808, allocations: 12 kB / 1.381 GB, free: 10.05 MB / 0.8855 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001097/0.581, allocations: 108 kB / 1.381 GB, free: 9.93 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002119/0.5812, allocations: 39.97 kB / 1.381 GB, free: 9.891 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.5812, allocations: 0 / 1.381 GB, free: 9.891 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.348e-05/0.5813, allocations: 31.92 kB / 1.381 GB, free: 9.859 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/0.5815, allocations: 8.859 kB / 1.381 GB, free: 9.852 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003866/0.5819, allocations: 160.5 kB / 1.381 GB, free: 9.664 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.5822, allocations: 0.6887 MB / 1.382 GB, free: 8.949 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.908e-05/0.5822, allocations: 4 kB / 1.382 GB, free: 8.945 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.595e-05/0.5822, allocations: 7.438 kB / 1.382 GB, free: 8.938 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.5823, allocations: 3.938 kB / 1.382 GB, free: 8.934 MB / 0.8855 GB Notification: Performance of Templates: time 0.002258/0.5845, allocations: 408.1 kB / 1.382 GB, free: 8.539 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality.makefile (rm -f Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality.pipe >> ../files/Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality.sim & ./Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Diagnostics_Validation_CheckEquality.csv","../files/Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches