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.001323/0.001323, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001614/0.001614, allocations: 189 kB / 16.25 MB, free: 6.152 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.376/1.376, allocations: 222.9 MB / 239.9 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.676/2.676, allocations: 461.8 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 68.52 kB / 0.8986 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3158, allocations: 157.4 MB / 1.052 GB, free: 8.727 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002259/0.3182, allocations: 0.9816 MB / 1.053 GB, free: 7.742 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001099/0.3193, allocations: 0.8779 MB / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.795e-05/0.3194, allocations: 0 / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.854e-05/0.3194, allocations: 3.938 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.3196, allocations: 19.86 kB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.3198, allocations: 47.89 kB / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.3199, allocations: 123.6 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.3201, allocations: 45.52 kB / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.3202, allocations: 59.77 kB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.432e-05/0.3203, allocations: 55.77 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.43e-05/0.3204, allocations: 12 kB / 1.054 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.102e-05/0.3204, allocations: 16 kB / 1.054 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.005e-05/0.3204, allocations: 23.92 kB / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.286e-05/0.3205, allocations: 71.52 kB / 1.055 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.3206, allocations: 143.8 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3207, allocations: 0 / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.875e-06/0.3207, allocations: 3.938 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.154e-06/0.3207, allocations: 4 kB / 1.055 GB, free: 6.227 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.0006524/0.3213, allocations: 434.9 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3214, allocations: 8.625 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.303e-05/0.3214, allocations: 12.84 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003286/0.3218, allocations: 218.6 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.3218, allocations: 8.375 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.3218, allocations: 16.12 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002419/0.3221, allocations: 105.6 kB / 1.055 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3221, allocations: 4 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.3221, allocations: 4 kB / 1.055 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3221, allocations: 0 / 1.055 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.3223, allocations: 73.5 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006011/0.3229, allocations: 404.3 kB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.3232, allocations: 82.59 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.3233, allocations: 40.84 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.3234, allocations: 4 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.3234, allocations: 38.5 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.3234, allocations: 0 / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.000369/0.3238, allocations: 121.7 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.3238, allocations: 55.41 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.324, allocations: 159.5 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.324, allocations: 25.7 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.459e-05/0.3241, allocations: 120.2 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.3241, allocations: 19.73 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.233e-05/0.3242, allocations: 25.72 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3243, allocations: 318.8 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.59e-05/0.3244, allocations: 31.97 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.3245, allocations: 50.56 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.3247, allocations: 68.98 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3247, allocations: 0 / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002419/0.3249, allocations: 109.4 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.325, allocations: 11.94 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.325, allocations: 0 / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.325, allocations: 0 / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.067e-05/0.3251, allocations: 15.92 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.3251, allocations: 7.938 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.177e-05/0.3252, allocations: 15.98 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.3252, allocations: 0 / 1.057 GB, free: 3.441 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.307e-05/0.3253, allocations: 122.5 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.902e-05/0.3253, allocations: 11.84 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.96e-05/0.3254, allocations: 16.7 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.3254, allocations: 7.984 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3254, allocations: 0 / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3254, allocations: 4 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.3256, allocations: 217.5 kB / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3256, allocations: 0 / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.665e-05/0.3257, allocations: 11.98 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.3257, allocations: 3.938 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.3258, allocations: 0 / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3258, allocations: 0 / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3258, allocations: 4 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.326, allocations: 199.3 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.149e-05/0.3261, allocations: 88.94 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.832e-05/0.3261, allocations: 8 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.3262, allocations: 7.984 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.3263, allocations: 11.98 kB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.3263, allocations: 7.984 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.922e-05/0.3264, allocations: 114.3 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3264, allocations: 4 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002368/0.3266, allocations: 19.91 kB / 1.058 GB, free: 2.508 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.0001172/0.3268, allocations: 107.3 kB / 1.058 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002542/0.327, allocations: 71.84 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.327, allocations: 0 / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.811e-05/0.3271, allocations: 43.91 kB / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.3275, allocations: 9.562 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005064/0.328, allocations: 251.9 kB / 1.058 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.3283, allocations: 0.7087 MB / 1.059 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.435e-05/0.3284, allocations: 8.656 kB / 1.059 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.114e-05/0.3285, allocations: 15.44 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of SimCode: time 6.01e-07/0.3285, allocations: 4 kB / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of Templates: time 0.003829/0.3323, allocations: 1.052 MB / 1.06 GB, free: 204 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