Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falCleTruIni.u|falCleTruIni.clr|falCleTruIni.y|falCleFalIni.u|falCleFalIni.clr|falCleFalIni.y|truCleTruIni.u|truCleTruIni.clr|truCleTruIni.y|truCleFalIni.u|truCleFalIni.clr|truCleFalIni.y|swiCleInp.u|swiCleInp.clr|swiCleInp.y|swiCleInp1.u|swiCleInp1.clr|swiCleInp1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.01267/0.01267, allocations: 168.9 kB / 16.26 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.607/1.607, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.016/3.016, allocations: 462.7 MB / 0.7364 GB, free: 292 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004164/0.0004165, allocations: 12.88 kB / 0.9028 GB, free: 36.73 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.453/0.4534, allocations: 159.6 MB / 1.059 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001139/0.4546, allocations: 489.2 kB / 1.059 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001968/0.4566, allocations: 1.264 MB / 1.06 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.4567, allocations: 4 kB / 1.06 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.774e-05/0.4568, allocations: 7.922 kB / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001022/0.4569, allocations: 7.875 kB / 1.06 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008451/0.4577, allocations: 233.8 kB / 1.061 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002951/0.458, allocations: 231.5 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.4582, allocations: 53.08 kB / 1.061 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.4584, allocations: 79.81 kB / 1.061 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.4586, allocations: 79.69 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.228e-05/0.4586, allocations: 12 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.4587, allocations: 27.92 kB / 1.061 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.881e-05/0.4588, allocations: 23.91 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.4589, allocations: 105.4 kB / 1.061 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002883/0.4592, allocations: 227.5 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4592, allocations: 0 / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.743e-06/0.4592, allocations: 4 kB / 1.061 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.4593, allocations: 4 kB / 1.061 GB, free: 2.641 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005933/0.4598, allocations: 454.6 kB / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.4599, allocations: 8.031 kB / 1.062 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.888e-05/0.46, allocations: 24.73 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000611/0.4606, allocations: 244.3 kB / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.4607, allocations: 24.3 kB / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.321e-05/0.4607, allocations: 20.38 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002464/0.461, allocations: 127 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.461, allocations: 3.938 kB / 1.062 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.461, allocations: 4 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.461, allocations: 4 kB / 1.062 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001268/0.4612, allocations: 67.95 kB / 1.062 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006381/0.4618, allocations: 456.1 kB / 1.063 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.462, allocations: 98.47 kB / 1.063 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.664e-05/0.4621, allocations: 44.98 kB / 1.063 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.4621, allocations: 0 / 1.063 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002358/0.4623, allocations: 139.1 kB / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.924e-06/0.4623, allocations: 0 / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.0004277/0.4628, allocations: 243.5 kB / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.4628, allocations: 55.41 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.4629, allocations: 137.7 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.463, allocations: 33.7 kB / 1.064 GB, free: 292 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.594e-05/0.4631, allocations: 116.4 kB / 1.064 GB, free: 172 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.703e-05/0.4631, allocations: 31.56 kB / 1.064 GB, free: 140 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.75e-05/0.4632, allocations: 41.69 kB / 1.064 GB, free: 92 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.4633, allocations: 318.8 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.4634, allocations: 63.97 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.4636, allocations: 134.5 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002523/0.4639, allocations: 225.2 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4639, allocations: 0 / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004521/0.4643, allocations: 308.7 kB / 1.065 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.011e-05/0.4644, allocations: 59.41 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.4644, allocations: 4 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.4644, allocations: 4.234 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.701e-05/0.4645, allocations: 12 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.4645, allocations: 3.938 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.4648, allocations: 83.78 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.217e-05/0.4649, allocations: 19.98 kB / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,truCleFalIni.y,truCleTruIni.y,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp.y,falCleFalIni.y,falCleTruIni.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tru.y,fal.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): 18 * Array equations: 0 * Algorithm blocks: 2 * 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.0001358/0.465, allocations: 131 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.241e-05/0.4651, allocations: 15.84 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.635e-05/0.4651, allocations: 12.83 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.4651, allocations: 4 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.4652, allocations: 4 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.4652, allocations: 0 / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005573/0.4657, allocations: 494.3 kB / 1.066 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.4657, allocations: 0 / 1.066 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.254e-05/0.4658, allocations: 7.938 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.4658, allocations: 0 / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.4658, allocations: 7.984 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.4658, allocations: 7.938 kB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4658, allocations: 4 kB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/0.4661, allocations: 294 kB / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.042e-05/0.4662, allocations: 84.95 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.4662, allocations: 7.984 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.917e-05/0.4663, allocations: 4 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/0.4663, allocations: 15.97 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.772e-05/0.4663, allocations: 15.98 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.219e-05/0.4664, allocations: 100.6 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4664, allocations: 0 / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000299/0.4667, allocations: 44 kB / 1.066 GB, free: 13.45 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: 16 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,falCleTruIni.y,truCleTruIni.y,falCleFalIni.y,truCleFalIni.y,swiCleInp.y,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001921/0.4669, allocations: 111.7 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003963/0.4673, allocations: 294.7 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.4673, allocations: 0.5 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.4674, allocations: 83.91 kB / 1.067 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.4678, allocations: 27.81 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004974/0.4683, allocations: 296.2 kB / 1.067 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.4686, allocations: 0.7088 MB / 1.068 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.431e-05/0.4686, allocations: 17.03 kB / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.503e-05/0.4686, allocations: 15.44 kB / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.4686, allocations: 0 / 1.068 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of Templates: time 0.005728/0.4744, allocations: 2.027 MB / 1.07 GB, free: 9.828 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches