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 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.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.001335/0.001335, allocations: 108 kB / 15.6 MB, free: 132 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.001525/0.001525, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.538/1.538, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.97/2.97, allocations: 472.6 MB / 0.7451 GB, free: 4.605 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001633, allocations: 61.64 kB / 0.9121 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4053, allocations: 159.9 MB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002554/0.4079, allocations: 0.7812 MB / 1.069 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001877/0.4098, allocations: 1.244 MB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.217e-05/0.4099, allocations: 0 / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.551e-05/0.4099, allocations: 11.88 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.054e-05/0.4101, allocations: 19.78 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000868/0.4109, allocations: 257.9 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000349/0.4113, allocations: 263.5 kB / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.4115, allocations: 57.06 kB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.4117, allocations: 99.81 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.4119, allocations: 95.61 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.584e-05/0.4119, allocations: 24 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.412, allocations: 39.98 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.475e-05/0.4121, allocations: 35.91 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.4122, allocations: 91.67 kB / 1.071 GB, free: 7.344 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003347/0.4126, allocations: 239.6 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.4126, allocations: 4 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.383e-06/0.4126, allocations: 0 / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.406e-06/0.4126, allocations: 0 / 1.071 GB, free: 7.105 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006988/0.4133, allocations: 0.4907 MB / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.4134, allocations: 8.031 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.556e-05/0.4134, allocations: 16.84 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000596/0.4141, allocations: 244.2 kB / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.4141, allocations: 16.38 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.4141, allocations: 24.36 kB / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.4144, allocations: 127.6 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.4144, allocations: 3.938 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.4144, allocations: 15.92 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.4144, allocations: 4 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001375/0.4146, allocations: 59.97 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006105/0.4152, allocations: 468.1 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.4154, allocations: 90.53 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.728e-05/0.4154, allocations: 40.84 kB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.755e-06/0.4155, allocations: 0 / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.4158, allocations: 145.6 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 3.777e-06/0.4158, allocations: 0 / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0004165/0.4162, allocations: 237.3 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.4163, allocations: 63.39 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.4164, allocations: 133.7 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.4164, allocations: 33.7 kB / 1.074 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.682e-05/0.4165, allocations: 116.5 kB / 1.074 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.4165, allocations: 27.66 kB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.4167, allocations: 69.67 kB / 1.074 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.4168, allocations: 322.8 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.4169, allocations: 67.95 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.4171, allocations: 139.7 kB / 1.074 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.4174, allocations: 213.1 kB / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.4174, allocations: 0 / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004748/0.4179, allocations: 316.5 kB / 1.075 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.606e-05/0.4179, allocations: 67.39 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.4179, allocations: 0 / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.418, allocations: 8.25 kB / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.761e-05/0.418, allocations: 4 kB / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.418, allocations: 7.938 kB / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003412/0.4184, allocations: 59.78 kB / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/0.4184, allocations: 19.98 kB / 1.075 GB, free: 3.188 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.0001317/0.4185, allocations: 145.7 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.408e-05/0.4186, allocations: 15.78 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.414e-05/0.4186, allocations: 8.844 kB / 1.075 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.4186, allocations: 4 kB / 1.075 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4186, allocations: 0 / 1.075 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.4186, allocations: 0 / 1.075 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004779/0.4191, allocations: 492.2 kB / 1.076 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.4191, allocations: 4 kB / 1.076 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.579e-05/0.4191, allocations: 7.938 kB / 1.076 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.4192, allocations: 0 / 1.076 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.4192, allocations: 7.984 kB / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.4192, allocations: 0 / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.4192, allocations: 3.938 kB / 1.076 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002884/0.4195, allocations: 287.3 kB / 1.076 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.419e-05/0.4195, allocations: 92.86 kB / 1.076 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.4196, allocations: 7.984 kB / 1.076 GB, free: 2.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.41e-05/0.4197, allocations: 4 kB / 1.076 GB, free: 2.027 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.88e-05/0.4197, allocations: 15.92 kB / 1.076 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.4197, allocations: 11.98 kB / 1.076 GB, free: 2 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.457e-05/0.4198, allocations: 102.5 kB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4198, allocations: 0 / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003014/0.4201, allocations: 44 kB / 1.076 GB, free: 1.859 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.0001829/0.4203, allocations: 116.2 kB / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004042/0.4207, allocations: 308.4 kB / 1.076 GB, free: 1.414 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4207, allocations: 0 / 1.076 GB, free: 1.414 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.4208, allocations: 71.91 kB / 1.077 GB, free: 1.344 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.4212, allocations: 25.64 kB / 1.077 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000526/0.4217, allocations: 268 kB / 1.077 GB, free: 1.031 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.422, allocations: 0.7163 MB / 1.078 GB, free: 296 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.135e-05/0.4221, allocations: 5.094 kB / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.684e-05/0.4221, allocations: 19.42 kB / 1.078 GB, free: 272 kB / 0.8262 GB Notification: Performance of SimCode: time 7.61e-07/0.4221, allocations: 0 / 1.078 GB, free: 272 kB / 0.8262 GB Notification: Performance of Templates: time 0.005546/0.4276, allocations: 2.147 MB / 1.08 GB, free: 14.14 MB / 0.8419 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