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.422/2.422, allocations: 390.5 MB / 398 MB, free: 10.95 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.001491/0.001491, allocations: 188.8 kB / 491.2 MB, free: 1.574 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.528/1.528, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001027/0.001027, allocations: 91.08 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.745e-05/1.747e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3264, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.128/1.454, allocations: 150 MB / 1.359 GB, free: 17.56 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/1.455, allocations: 74.75 kB / 1.359 GB, free: 17.56 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006148/1.461, allocations: 1.459 MB / 1.36 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.854e-06/1.461, allocations: 3.875 kB / 1.36 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.645e-06/1.461, allocations: 0 / 1.36 GB, free: 33.18 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004173/1.461, allocations: 347.2 kB / 1.361 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/1.461, allocations: 11.53 kB / 1.361 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.385e-05/1.461, allocations: 7.719 kB / 1.361 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/1.461, allocations: 184 kB / 1.361 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/1.461, allocations: 3.906 kB / 1.361 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.033e-05/1.461, allocations: 3.984 kB / 1.361 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001066/1.462, allocations: 27.62 kB / 1.361 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001138/1.462, allocations: 52.77 kB / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/1.462, allocations: 0 / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/1.462, allocations: 0 / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/1.462, allocations: 0 / 1.361 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005435/1.462, allocations: 279.5 kB / 1.361 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/1.463, allocations: 50.95 kB / 1.361 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.066e-05/1.463, allocations: 13.44 kB / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/1.463, allocations: 0 / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/1.463, allocations: 34.44 kB / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/1.463, allocations: 0 / 1.361 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0002117/1.463, allocations: 56.09 kB / 1.361 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.686e-05/1.463, allocations: 55.41 kB / 1.361 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.916e-05/1.463, allocations: 104.5 kB / 1.361 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/1.463, allocations: 25.7 kB / 1.361 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/1.463, allocations: 84.95 kB / 1.362 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/1.463, allocations: 16.59 kB / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-06/1.463, allocations: 0 / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001108/1.463, allocations: 314.8 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.977e-05/1.463, allocations: 11.38 kB / 1.362 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.233e-05/1.463, allocations: 7.344 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.232e-05/1.463, allocations: 7.688 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/1.463, allocations: 0 / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001094/1.464, allocations: 54.09 kB / 1.362 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/1.464, allocations: 6.625 kB / 1.362 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/1.464, allocations: 0 / 1.362 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/1.464, allocations: 1.266 kB / 1.362 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/1.464, allocations: 13.02 kB / 1.362 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/1.464, allocations: 3.953 kB / 1.362 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.943e-05/1.464, allocations: 9.859 kB / 1.362 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/1.464, allocations: 0.7031 kB / 1.362 GB, free: 31.57 MB / 0.8386 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 (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 8.794e-05/1.464, allocations: 105.7 kB / 1.362 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/1.464, allocations: 5.5 kB / 1.362 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/1.464, allocations: 18.84 kB / 1.362 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/1.464, allocations: 0 / 1.362 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/1.464, allocations: 0 / 1.362 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/1.464, allocations: 5.359 kB / 1.362 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/1.464, allocations: 146.4 kB / 1.362 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/1.464, allocations: 5.547 kB / 1.362 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.916e-05/1.464, allocations: 9.453 kB / 1.362 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/1.464, allocations: 3.188 kB / 1.362 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-06/1.464, allocations: 0 / 1.362 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/1.464, allocations: 0 / 1.362 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/1.464, allocations: 0 / 1.362 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001436/1.465, allocations: 152.6 kB / 1.362 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.943e-05/1.465, allocations: 90.17 kB / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.754e-05/1.465, allocations: 0 / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/1.465, allocations: 4.984 kB / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.994e-05/1.465, allocations: 8.891 kB / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-06/1.465, allocations: 0 / 1.363 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.223e-05/1.465, allocations: 87.48 kB / 1.363 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.1e-07/1.465, allocations: 0 / 1.363 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003457/1.465, allocations: 3.844 kB / 1.363 GB, free: 30.96 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 (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.0001051/1.465, allocations: 100.1 kB / 1.363 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001209/1.466, allocations: 23.52 kB / 1.363 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.466, allocations: 0 / 1.363 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.617e-05/1.466, allocations: 10.94 kB / 1.363 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/1.466, allocations: 8.797 kB / 1.363 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002824/1.466, allocations: 77.41 kB / 1.363 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/1.467, allocations: 0.6872 MB / 1.363 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.708e-05/1.467, allocations: 9.156 kB / 1.363 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.499e-05/1.467, allocations: 11.16 kB / 1.364 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of SimCode: time 3.3e-07/1.467, allocations: 0 / 1.364 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of Templates: time 0.003168/1.47, allocations: 360.7 kB / 1.364 GB, free: 30.04 MB / 0.8386 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