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.002199/0.002199, 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.002676/0.002676, allocations: 192 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.575/1.575, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.035/3.035, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 67.48 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4854/0.4866, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002958/0.4897, allocations: 0.7695 MB / 1.069 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00225/0.4919, allocations: 1.24 MB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.977e-05/0.492, allocations: 4 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.375e-05/0.4921, allocations: 15.8 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.4923, allocations: 15.88 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009524/0.4932, allocations: 257.7 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.4936, allocations: 263.4 kB / 1.071 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.4939, allocations: 57.06 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.494, allocations: 103.8 kB / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.4942, allocations: 87.69 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.24e-05/0.4943, allocations: 24 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.4944, allocations: 39.98 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.406e-05/0.4945, allocations: 43.83 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.4946, allocations: 91.67 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003919/0.495, allocations: 243.6 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.4951, allocations: 0 / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.818e-06/0.4951, allocations: 0 / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.4951, allocations: 0 / 1.071 GB, free: 7.211 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.0009306/0.496, allocations: 498.5 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.34e-05/0.4961, allocations: 8.031 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.38e-05/0.4962, allocations: 16.84 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007013/0.4969, allocations: 252.1 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.4969, allocations: 16.38 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.994e-05/0.497, allocations: 24.36 kB / 1.072 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002833/0.4973, allocations: 130.8 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.4973, allocations: 3.938 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.4973, allocations: 4 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.4974, allocations: 8 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001414/0.4975, allocations: 75.88 kB / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006816/0.4982, allocations: 456.2 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.4984, allocations: 94.53 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.09e-05/0.4984, allocations: 37 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.4985, allocations: 7.984 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/0.4988, allocations: 135.8 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.493e-06/0.4988, allocations: 0 / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0004753/0.4992, allocations: 243.6 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/0.4993, allocations: 55.41 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.4995, allocations: 137.7 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.238e-05/0.4995, allocations: 33.7 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.531e-05/0.4996, allocations: 112.4 kB / 1.074 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.228e-05/0.4996, allocations: 31.64 kB / 1.074 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.4998, allocations: 69.67 kB / 1.074 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.4999, allocations: 322.8 kB / 1.074 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.5001, allocations: 63.97 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.5002, allocations: 142.4 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.5005, allocations: 212.8 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.5005, allocations: 4 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004798/0.501, allocations: 312.6 kB / 1.075 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.376e-05/0.5011, allocations: 59.41 kB / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.5011, allocations: 4.188 kB / 1.075 GB, free: 3.391 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.5011, allocations: 8 kB / 1.075 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.145e-05/0.5012, allocations: 11.92 kB / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.5012, allocations: 4 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003307/0.5015, allocations: 59.78 kB / 1.075 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.5016, allocations: 19.98 kB / 1.075 GB, free: 3.289 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.0002032/0.5018, allocations: 145.7 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.5018, allocations: 11.84 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.759e-05/0.5019, allocations: 16.83 kB / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.5019, allocations: 0 / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.5019, allocations: 0 / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.5019, allocations: 0 / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005844/0.5025, allocations: 498.3 kB / 1.075 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.5025, allocations: 4 kB / 1.075 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.898e-06/0.5025, allocations: 0 / 1.075 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.5025, allocations: 0 / 1.075 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.5026, allocations: 7.984 kB / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.5026, allocations: 0 / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5026, allocations: 0 / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003485/0.5029, allocations: 289 kB / 1.076 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.099e-05/0.503, allocations: 92.86 kB / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.503, allocations: 4 kB / 1.076 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.138e-05/0.5031, allocations: 15.98 kB / 1.076 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.842e-05/0.5032, allocations: 15.86 kB / 1.076 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.181e-05/0.5032, allocations: 15.98 kB / 1.076 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.585e-05/0.5033, allocations: 95.27 kB / 1.076 GB, free: 2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5033, allocations: 0 / 1.076 GB, free: 2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003157/0.5036, allocations: 44 kB / 1.076 GB, free: 1.957 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.0002707/0.5039, allocations: 116.8 kB / 1.076 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005425/0.5045, allocations: 302.5 kB / 1.076 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5045, allocations: 0 / 1.076 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.5046, allocations: 70.31 kB / 1.077 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.5049, allocations: 29.78 kB / 1.077 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006172/0.5056, allocations: 270.2 kB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.506, allocations: 0.7124 MB / 1.077 GB, free: 404 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.483e-05/0.506, allocations: 13.02 kB / 1.078 GB, free: 392 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.878e-05/0.506, allocations: 15.44 kB / 1.078 GB, free: 376 kB / 0.8262 GB Notification: Performance of SimCode: time 4.51e-07/0.5061, allocations: 0 / 1.078 GB, free: 376 kB / 0.8262 GB Notification: Performance of Templates: time 0.005988/0.512, allocations: 2.149 MB / 1.08 GB, free: 14.23 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