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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009242/0.0009242, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001151, allocations: 172.9 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.629/2.629, allocations: 462.6 MB / 0.737 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.000351, allocations: 8.75 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2843, allocations: 159.6 MB / 1.059 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Diagnostics.Validation.CheckEquality): time 0.001883/0.2862, allocations: 1.25 MB / 1.061 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000686/0.2869, allocations: 442.9 kB / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.924e-05/0.287, allocations: 0 / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.135e-05/0.287, allocations: 3.938 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.039e-05/0.2871, allocations: 3.938 kB / 1.061 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.2873, allocations: 11.98 kB / 1.061 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.572e-05/0.2874, allocations: 47.84 kB / 1.061 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.2875, allocations: 23.98 kB / 1.061 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.2876, allocations: 15.86 kB / 1.061 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.327e-05/0.2877, allocations: 19.92 kB / 1.061 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.706e-05/0.2877, allocations: 0 / 1.061 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.348e-06/0.2877, allocations: 0 / 1.061 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.645e-05/0.2877, allocations: 7.938 kB / 1.061 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.783e-05/0.2878, allocations: 49.55 kB / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.582e-05/0.2878, allocations: 27.95 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2879, allocations: 4 kB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2879, allocations: 0 / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.2879, allocations: 0 / 1.061 GB, free: 3.035 MB / 0.8106 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.0004934/0.2884, allocations: 347.7 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.2884, allocations: 12.03 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.109e-05/0.2884, allocations: 4.844 kB / 1.062 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.2886, allocations: 172.3 kB / 1.062 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.2886, allocations: 8.375 kB / 1.062 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.2886, allocations: 4.375 kB / 1.062 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.2888, allocations: 77.92 kB / 1.062 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-06/0.2888, allocations: 0 / 1.062 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.2889, allocations: 3.984 kB / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.237e-06/0.2889, allocations: 0 / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.2891, allocations: 51.97 kB / 1.062 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004396/0.2895, allocations: 300.7 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003405/0.2899, allocations: 74.48 kB / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.29, allocations: 28.91 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.29, allocations: 0 / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.2901, allocations: 34.56 kB / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.2901, allocations: 0 / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003905/0.2905, allocations: 105.5 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.2905, allocations: 55.34 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.102e-05/0.2906, allocations: 121.8 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.2906, allocations: 29.64 kB / 1.063 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.276e-05/0.2907, allocations: 96.06 kB / 1.063 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.988e-05/0.2907, allocations: 11.81 kB / 1.063 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.541e-05/0.2907, allocations: 13.72 kB / 1.063 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.2909, allocations: 318.8 kB / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.575e-05/0.291, allocations: 19.98 kB / 1.063 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.714e-05/0.2911, allocations: 23.98 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/0.2912, allocations: 44.83 kB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2912, allocations: 4 kB / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002234/0.2915, allocations: 81.59 kB / 1.063 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.2915, allocations: 4 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.2915, allocations: 0 / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.2915, allocations: 0 / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.089e-05/0.2916, allocations: 12 kB / 1.063 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.2916, allocations: 3.984 kB / 1.063 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.798e-05/0.2917, allocations: 12 kB / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.2917, allocations: 0 / 1.063 GB, free: 0.7773 MB / 0.8106 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.111e-05/0.2918, allocations: 113.8 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.355e-05/0.2918, allocations: 3.906 kB / 1.063 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.411e-05/0.2919, allocations: 15.89 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2919, allocations: 0 / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2919, allocations: 0 / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.2919, allocations: 0 / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.2921, allocations: 177.6 kB / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2921, allocations: 0 / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.656e-05/0.2921, allocations: 11.98 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2922, allocations: 0 / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-06/0.2922, allocations: 0 / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2922, allocations: 0 / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2922, allocations: 0 / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.2925, allocations: 195.6 kB / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.786e-05/0.2925, allocations: 81.05 kB / 1.064 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.2925, allocations: 0 / 1.064 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.929e-05/0.2926, allocations: 11.98 kB / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.942e-05/0.2927, allocations: 0 / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.2927, allocations: 0 / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.115e-05/0.2928, allocations: 107.6 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.21e-07/0.2928, allocations: 0 / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002197/0.293, allocations: 7.938 kB / 1.064 GB, free: 15.97 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001199/0.2931, allocations: 99.19 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002312/0.2933, allocations: 59.89 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2934, allocations: 0 / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.656e-05/0.2935, allocations: 23.92 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.2938, allocations: 6.391 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003864/0.2941, allocations: 194.2 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.2944, allocations: 0.6848 MB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.371e-05/0.2944, allocations: 11.42 kB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.2945, allocations: 0 / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of Templates: time 0.001988/0.2964, allocations: 0.698 MB / 1.066 GB, free: 14.13 MB / 0.8262 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Diagnostics.Validation.CheckEquality.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,cheEqu.y,cheEqu.u1,cheEqu.u2 Variables in the result:cheEqu.u1,cheEqu.u2,cheEqu.y,time