Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Templates.Components.Controls.Validation.MultipleCommands,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conCom.y1.1.|conCom.y1.2.|conCom.y1.3.|conCom.y1One|conCom.nUniOn|conCom.nUniOnBou",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands") translateModel(Buildings.Templates.Components.Controls.Validation.MultipleCommands,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conCom.y1.1.|conCom.y1.2.|conCom.y1.3.|conCom.y1One|conCom.nUniOn|conCom.nUniOnBou",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001249/0.001249, 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.001939/0.001938, allocations: 194.5 kB / 16.14 MB, free: 6.645 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.492/1.492, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.882/2.882, allocations: 472.6 MB / 0.7447 GB, free: 4.941 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 64.98 kB / 0.9114 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.3783, allocations: 159.9 MB / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.MultipleCommands): time 0.002794/0.3812, allocations: 0.8807 MB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001712/0.383, allocations: 1.178 MB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.609e-05/0.3831, allocations: 4 kB / 1.07 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000132/0.3832, allocations: 11.92 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.3833, allocations: 7.938 kB / 1.07 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004538/0.3838, allocations: 139.1 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003244/0.3841, allocations: 311.4 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002294/0.3844, allocations: 118.2 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.3845, allocations: 111.8 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.3847, allocations: 111.6 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.37e-05/0.3847, allocations: 16 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.3848, allocations: 35.92 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.051e-05/0.3849, allocations: 39.86 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.3851, allocations: 115.5 kB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003703/0.3855, allocations: 371.2 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3855, allocations: 0 / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.42e-07/0.3855, allocations: 4 kB / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.3855, allocations: 0 / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0008267/0.3863, allocations: 0.5858 MB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.3864, allocations: 8.031 kB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.668e-05/0.3865, allocations: 24.75 kB / 1.072 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003785/0.3869, allocations: 280.6 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.3869, allocations: 16.38 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-05/0.387, allocations: 24.38 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003105/0.3873, allocations: 178.1 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.3873, allocations: 192 / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.354e-05/0.3873, allocations: 15.94 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3873, allocations: 0 / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002255/0.3876, allocations: 152.4 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009192/0.3885, allocations: 0.6639 MB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.3887, allocations: 122.5 kB / 1.073 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.3888, allocations: 72.8 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.3889, allocations: 7.938 kB / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000241/0.3891, allocations: 187.2 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.473e-06/0.3891, allocations: 0 / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0005041/0.3896, allocations: 287.6 kB / 1.073 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.3897, allocations: 59.41 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.3899, allocations: 199.4 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.806e-05/0.3899, allocations: 37.7 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.39, allocations: 128.4 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.276e-05/0.3901, allocations: 35.55 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.3902, allocations: 93.66 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.3903, allocations: 326.8 kB / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003675/0.3907, allocations: 219.8 kB / 1.075 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003799/0.3911, allocations: 280.2 kB / 1.075 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004707/0.3916, allocations: 397 kB / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3916, allocations: 0 / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00094/0.3925, allocations: 0.6347 MB / 1.076 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.587e-05/0.3926, allocations: 97.09 kB / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3926, allocations: 0 / 1.076 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.3926, allocations: 4 kB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.3928, allocations: 15.98 kB / 1.076 GB, free: 1.957 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.3928, allocations: 4 kB / 1.076 GB, free: 1.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000567/0.3933, allocations: 111.9 kB / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.267e-05/0.3934, allocations: 23.98 kB / 1.076 GB, free: 1.82 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,conCom.mulOr.uTemp[2],conCom.y1One,y1[3].y,$PRE.y1[3].y,y1[2].y,$PRE.y1[2].y,y1[1].y,$PRE.y1[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 3 * 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.0001608/0.3936, allocations: 166.4 kB / 1.076 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.828e-05/0.3936, allocations: 19.75 kB / 1.076 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003657/0.394, allocations: 239.3 kB / 1.076 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.394, allocations: 0 / 1.076 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.394, allocations: 4 kB / 1.076 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.394, allocations: 3.984 kB / 1.076 GB, free: 1.379 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.3943, allocations: 277.3 kB / 1.077 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3943, allocations: 0 / 1.077 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.419e-05/0.3944, allocations: 11.98 kB / 1.077 GB, free: 1.047 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.3944, allocations: 0 / 1.077 GB, free: 1.047 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.3944, allocations: 4 kB / 1.077 GB, free: 1.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3944, allocations: 3.984 kB / 1.077 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3944, allocations: 4 kB / 1.077 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003219/0.3947, allocations: 244.7 kB / 1.077 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.236e-05/0.3948, allocations: 88.95 kB / 1.077 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.832e-05/0.3948, allocations: 11.98 kB / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.552e-05/0.3949, allocations: 0 / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.885e-05/0.3949, allocations: 15.98 kB / 1.077 GB, free: 0.6445 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.3949, allocations: 7.984 kB / 1.077 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001043/0.3951, allocations: 139.2 kB / 1.077 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3951, allocations: 0 / 1.077 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003003/0.3954, allocations: 63.91 kB / 1.077 GB, free: 448 kB / 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: 11 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,y1[1].y,y1[2].y,y1[3].y,conCom.y1One,conCom.mulOr.uTemp[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001605/0.3955, allocations: 112.9 kB / 1.077 GB, free: 328 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007282/0.3963, allocations: 0.5623 MB / 1.078 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3963, allocations: 448 / 1.078 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.3964, allocations: 99.88 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.3968, allocations: 35.91 kB / 1.078 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006424/0.3974, allocations: 426 kB / 1.078 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.3977, allocations: 0.7555 MB / 1.079 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.711e-05/0.3978, allocations: 33.34 kB / 1.079 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.894e-05/0.3978, allocations: 11.44 kB / 1.079 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of SimCode: time 4.7e-07/0.3978, allocations: 4 kB / 1.079 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of Templates: time 0.006984/0.4048, allocations: 3.587 MB / 1.083 GB, free: 10.77 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands.makefile (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands.sim & ./Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_MultipleCommands.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.MultipleCommands.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches