Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.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.Controls.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, 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.001782/0.001782, 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.559/1.559, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.717/2.717, allocations: 462.6 MB / 0.737 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003603, allocations: 14.89 kB / 0.9034 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.307, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Average): time 0.0008701/0.3079, allocations: 444.3 kB / 1.06 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009268/0.3088, allocations: 0.7962 MB / 1.061 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.971e-05/0.3089, allocations: 4 kB / 1.061 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.007e-05/0.3089, allocations: 3.938 kB / 1.061 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.363e-05/0.309, allocations: 7.969 kB / 1.061 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.503e-05/0.3091, allocations: 12 kB / 1.061 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.197e-05/0.3092, allocations: 51.78 kB / 1.061 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.3093, allocations: 4 kB / 1.061 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.037e-05/0.3094, allocations: 11.98 kB / 1.061 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.176e-05/0.3094, allocations: 15.92 kB / 1.061 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.3094, allocations: 7.938 kB / 1.061 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.734e-06/0.3095, allocations: 0 / 1.061 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.088e-05/0.3095, allocations: 11.98 kB / 1.061 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.933e-05/0.3095, allocations: 33.64 kB / 1.061 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.076e-05/0.3096, allocations: 35.92 kB / 1.061 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3096, allocations: 0 / 1.061 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.659e-06/0.3096, allocations: 3.984 kB / 1.061 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.3096, allocations: 3.938 kB / 1.061 GB, free: 3.508 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004978/0.3101, allocations: 371.6 kB / 1.061 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.3102, allocations: 8.031 kB / 1.061 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.363e-05/0.3102, allocations: 4.938 kB / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.3103, allocations: 168.2 kB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.3104, allocations: 4.375 kB / 1.061 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.3104, allocations: 8.312 kB / 1.061 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.3106, allocations: 82.2 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.3107, allocations: 192 / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.3107, allocations: 7.938 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3107, allocations: 0 / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003107/0.311, allocations: 87.92 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003482/0.3114, allocations: 253 kB / 1.062 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.3116, allocations: 78.41 kB / 1.062 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.3118, allocations: 52.92 kB / 1.062 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.3118, allocations: 3.984 kB / 1.062 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.3118, allocations: 30.56 kB / 1.062 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3118, allocations: 0 / 1.062 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005767/0.3124, allocations: 165.5 kB / 1.062 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.3124, allocations: 59.34 kB / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.111e-05/0.3125, allocations: 109.8 kB / 1.062 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.3126, allocations: 25.7 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.591e-05/0.3126, allocations: 92.12 kB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.3126, allocations: 3.906 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.249e-05/0.3127, allocations: 13.66 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3128, allocations: 314.8 kB / 1.063 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.3129, allocations: 47.95 kB / 1.063 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.3131, allocations: 39.97 kB / 1.063 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.3134, allocations: 88.78 kB / 1.063 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3134, allocations: 7.938 kB / 1.063 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003478/0.3138, allocations: 125.5 kB / 1.063 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.3138, allocations: 8 kB / 1.063 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3138, allocations: 0 / 1.063 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.3138, allocations: 0 / 1.063 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.3139, allocations: 23.97 kB / 1.063 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.314, allocations: 4 kB / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.674e-05/0.3141, allocations: 19.92 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/0.3141, allocations: 0 / 1.063 GB, free: 1.02 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 0.0001075/0.3142, allocations: 113.8 kB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.686e-05/0.3142, allocations: 4 kB / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.178e-05/0.3143, allocations: 3.906 kB / 1.063 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3143, allocations: 0 / 1.063 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.3143, allocations: 8 kB / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3143, allocations: 3.984 kB / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.3145, allocations: 169.6 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3145, allocations: 0 / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.968e-05/0.3146, allocations: 19.98 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.3146, allocations: 4 kB / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.3146, allocations: 0 / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3146, allocations: 0 / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3146, allocations: 4 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000407/0.3151, allocations: 227.2 kB / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.769e-05/0.3151, allocations: 81.05 kB / 1.064 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.3151, allocations: 0 / 1.064 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.3152, allocations: 15.98 kB / 1.064 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/0.3153, allocations: 7.984 kB / 1.064 GB, free: 280 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.3153, allocations: 4 kB / 1.064 GB, free: 276 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.723e-05/0.3153, allocations: 87.28 kB / 1.064 GB, free: 188 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3154, allocations: 0 / 1.064 GB, free: 188 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000215/0.3156, allocations: 7.984 kB / 1.064 GB, free: 180 kB / 0.8106 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.0001545/0.3157, allocations: 103.2 kB / 1.064 GB, free: 68 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003851/0.3161, allocations: 92.23 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3161, allocations: 0 / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001768/0.3163, allocations: 47.97 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.3166, allocations: 19.97 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003435/0.317, allocations: 174.1 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.3172, allocations: 0.6772 MB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.532e-05/0.3173, allocations: 11.44 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.3173, allocations: 0 / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of Templates: time 0.002067/0.3194, allocations: 0.7338 MB / 1.065 GB, free: 14.26 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches