Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conSysSta.TRoo|conSysSta.TRooSet|conSysSta.TOut|conSysSta.TOutLow|conSysSta.onSys",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff") translateModel(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conSysSta.TRoo|conSysSta.TRooSet|conSysSta.TOut|conSysSta.TOutLow|conSysSta.onSys",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001669/0.001669, allocations: 196 kB / 16.14 MB, free: 6.648 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.44/1.44, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.636/2.636, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 64.14 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2836, allocations: 157.4 MB / 1.052 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002537/0.2862, allocations: 0.9777 MB / 1.053 GB, free: 7.902 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001077/0.2873, allocations: 0.8896 MB / 1.054 GB, free: 7 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.931e-05/0.2874, allocations: 0 / 1.054 GB, free: 7 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.809e-05/0.2875, allocations: 7.922 kB / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.037e-05/0.2876, allocations: 11.88 kB / 1.054 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.2878, allocations: 43.89 kB / 1.054 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000126/0.2879, allocations: 119.6 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.288, allocations: 57.48 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.2882, allocations: 47.72 kB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.295e-05/0.2882, allocations: 47.77 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.2883, allocations: 8 kB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.745e-05/0.2883, allocations: 4 kB / 1.054 GB, free: 6.652 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.849e-05/0.2883, allocations: 23.91 kB / 1.054 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.353e-05/0.2884, allocations: 55.66 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.2886, allocations: 139.8 kB / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2886, allocations: 0 / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.32e-07/0.2886, allocations: 4 kB / 1.054 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.2886, allocations: 0 / 1.054 GB, free: 6.434 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006059/0.2892, allocations: 438.9 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.2892, allocations: 12.03 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.2893, allocations: 12.84 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.2896, allocations: 218.8 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.2896, allocations: 12.38 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.247e-05/0.2896, allocations: 12.12 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002395/0.2899, allocations: 98.5 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.2899, allocations: 0 / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.2899, allocations: 4 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2899, allocations: 4 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.2901, allocations: 67.89 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006225/0.2907, allocations: 420.3 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.291, allocations: 78.67 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.81e-05/0.2911, allocations: 36.84 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.2912, allocations: 3.984 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.2912, allocations: 42.5 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.2912, allocations: 0 / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003656/0.2916, allocations: 121.5 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.2916, allocations: 55.41 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.2918, allocations: 160.8 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.2918, allocations: 29.7 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.966e-05/0.2919, allocations: 108.4 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/0.2919, allocations: 19.75 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.022e-05/0.292, allocations: 29.7 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.2921, allocations: 322.8 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.268e-05/0.2922, allocations: 31.98 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.2923, allocations: 62.42 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.2924, allocations: 52.83 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2924, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002211/0.2927, allocations: 113.4 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.2927, allocations: 11.97 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.2927, allocations: 0 / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.2927, allocations: 0 / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.611e-05/0.2928, allocations: 15.98 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.2928, allocations: 4 kB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.039e-05/0.2929, allocations: 7.984 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.293, allocations: 7.938 kB / 1.057 GB, free: 3.645 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: 5 (conSysSta.onTRoo.y,$PRE.conSysSta.onTRoo.y,conSysSta.onTOut.y,$PRE.conSysSta.onTOut.y,conSysSta.onSys) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 9.06e-05/0.293, allocations: 117.8 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.566e-05/0.2931, allocations: 19.84 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.719e-05/0.2931, allocations: 20.64 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2931, allocations: 0 / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2931, allocations: 4 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2932, allocations: 0 / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/0.2934, allocations: 209.5 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2934, allocations: 0 / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.745e-05/0.2935, allocations: 11.98 kB / 1.057 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.2935, allocations: 7.938 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.2935, allocations: 7.984 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.2935, allocations: 4 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2935, allocations: 288 / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002533/0.2938, allocations: 191.4 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.196e-05/0.2938, allocations: 88.95 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.2938, allocations: 3.938 kB / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.294, allocations: 11.98 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.17e-05/0.294, allocations: 23.91 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.294, allocations: 0 / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.634e-05/0.2941, allocations: 121.4 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2941, allocations: 0 / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000227/0.2944, allocations: 19.91 kB / 1.058 GB, free: 2.707 MB / 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: 3 (conSysSta.onSys,conSysSta.onTOut.y,conSysSta.onTRoo.y) * Number of discrete states: 2 (conSysSta.onTRoo.y,conSysSta.onTOut.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001075/0.2945, allocations: 103.2 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000243/0.2947, allocations: 75.95 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.2947, allocations: 0 / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.237e-05/0.2948, allocations: 35.92 kB / 1.058 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00031/0.2952, allocations: 21.58 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004586/0.2956, allocations: 259.1 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.2959, allocations: 0.7004 MB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.285e-05/0.296, allocations: 12.66 kB / 1.059 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.963e-05/0.296, allocations: 19.42 kB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of SimCode: time 4.01e-07/0.296, allocations: 0 / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of Templates: time 0.003163/0.2992, allocations: 0.9884 MB / 1.06 GB, free: 464 kB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.makefile (rm -f Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & ./Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches