Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001706/0.001706, allocations: 100.4 kB / 16.27 MB, free: 5.969 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.001865/0.001865, allocations: 191.3 kB / 17.2 MB, free: 5.598 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.542/1.542, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.87/2.87, allocations: 469.8 MB / 0.743 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 68.02 kB / 0.9092 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.349, allocations: 159.1 MB / 1.065 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002297/0.3513, allocations: 0.7618 MB / 1.065 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001964/0.3533, allocations: 1.26 MB / 1.067 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.506e-05/0.3534, allocations: 0 / 1.067 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.303e-05/0.3535, allocations: 11.81 kB / 1.067 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.988e-05/0.3536, allocations: 15.86 kB / 1.067 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007736/0.3544, allocations: 246.1 kB / 1.067 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003275/0.3547, allocations: 275.6 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.3549, allocations: 45.11 kB / 1.067 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001408/0.355, allocations: 103.8 kB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.3552, allocations: 91.69 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.345e-05/0.3552, allocations: 28 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.3554, allocations: 35.98 kB / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.2e-05/0.3554, allocations: 35.91 kB / 1.067 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.3555, allocations: 95.67 kB / 1.068 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003284/0.3559, allocations: 243.6 kB / 1.068 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3559, allocations: 0 / 1.068 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3559, allocations: 0 / 1.068 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.3559, allocations: 0 / 1.068 GB, free: 11.55 MB / 0.8419 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.0007345/0.3566, allocations: 494.5 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.3567, allocations: 8.031 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.35e-05/0.3568, allocations: 24.83 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006291/0.3574, allocations: 244.2 kB / 1.069 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.3574, allocations: 20.36 kB / 1.069 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.19e-05/0.3575, allocations: 20.38 kB / 1.069 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002575/0.3578, allocations: 132.3 kB / 1.069 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.3578, allocations: 7.922 kB / 1.069 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.3578, allocations: 8 kB / 1.069 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.3578, allocations: 7.938 kB / 1.069 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.358, allocations: 67.95 kB / 1.069 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006777/0.3586, allocations: 448.2 kB / 1.069 GB, free: 9.945 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002002/0.3589, allocations: 98.53 kB / 1.069 GB, free: 9.84 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.15e-05/0.3589, allocations: 44.83 kB / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 9.358e-06/0.359, allocations: 0 / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003512/0.3593, allocations: 143.3 kB / 1.069 GB, free: 9.641 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.503e-06/0.3593, allocations: 0 / 1.069 GB, free: 9.641 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.0004795/0.3598, allocations: 238.8 kB / 1.07 GB, free: 9.402 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.3599, allocations: 59.41 kB / 1.07 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.36, allocations: 137.6 kB / 1.07 GB, free: 9.188 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.33e-05/0.3601, allocations: 33.7 kB / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.3602, allocations: 108.5 kB / 1.07 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.718e-05/0.3603, allocations: 35.5 kB / 1.07 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.3604, allocations: 73.61 kB / 1.07 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001829/0.3606, allocations: 322.8 kB / 1.07 GB, free: 8.602 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.3608, allocations: 71.95 kB / 1.071 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.361, allocations: 120.9 kB / 1.071 GB, free: 8.387 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.3613, allocations: 217.1 kB / 1.071 GB, free: 8.137 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3613, allocations: 0 / 1.071 GB, free: 8.137 MB / 0.8419 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005772/0.3619, allocations: 316.6 kB / 1.071 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.853e-05/0.362, allocations: 63.39 kB / 1.071 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.362, allocations: 4 kB / 1.071 GB, free: 7.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.362, allocations: 4 kB / 1.071 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.251e-05/0.362, allocations: 7.938 kB / 1.071 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.3621, allocations: 7.984 kB / 1.071 GB, free: 7.711 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003798/0.3624, allocations: 56.14 kB / 1.071 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.3625, allocations: 19.98 kB / 1.071 GB, free: 7.637 MB / 0.8419 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.0001929/0.3627, allocations: 142.8 kB / 1.071 GB, free: 7.488 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/0.3627, allocations: 19.75 kB / 1.071 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.755e-05/0.3628, allocations: 8.844 kB / 1.071 GB, free: 7.461 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3628, allocations: 4 kB / 1.071 GB, free: 7.457 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3628, allocations: 0 / 1.071 GB, free: 7.457 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3628, allocations: 7.984 kB / 1.071 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006301/0.3634, allocations: 486.3 kB / 1.072 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3635, allocations: 0 / 1.072 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.419e-05/0.3635, allocations: 4 kB / 1.072 GB, free: 6.914 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3635, allocations: 3.984 kB / 1.072 GB, free: 6.91 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.3635, allocations: 4 kB / 1.072 GB, free: 6.906 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3635, allocations: 0 / 1.072 GB, free: 6.906 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3635, allocations: 0 / 1.072 GB, free: 6.906 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003939/0.3639, allocations: 306.3 kB / 1.072 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.543e-05/0.364, allocations: 88.94 kB / 1.072 GB, free: 6.488 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/0.364, allocations: 4 kB / 1.072 GB, free: 6.484 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.003e-05/0.3641, allocations: 0 / 1.072 GB, free: 6.484 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.866e-05/0.3642, allocations: 19.97 kB / 1.072 GB, free: 6.465 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/0.3642, allocations: 8 kB / 1.072 GB, free: 6.457 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001011/0.3643, allocations: 101.7 kB / 1.072 GB, free: 6.359 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3643, allocations: 4 kB / 1.072 GB, free: 6.355 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000335/0.3646, allocations: 51.89 kB / 1.072 GB, free: 6.305 MB / 0.8419 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.0002056/0.3649, allocations: 116.5 kB / 1.073 GB, free: 6.184 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004985/0.3654, allocations: 298.5 kB / 1.073 GB, free: 5.867 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3654, allocations: 0 / 1.073 GB, free: 5.867 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.3655, allocations: 76.41 kB / 1.073 GB, free: 5.793 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.3659, allocations: 36.14 kB / 1.073 GB, free: 5.762 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006006/0.3665, allocations: 293.2 kB / 1.073 GB, free: 5.438 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.3668, allocations: 0.7046 MB / 1.074 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.032e-05/0.3669, allocations: 15.44 kB / 1.074 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.3669, allocations: 0 / 1.074 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of Templates: time 0.004488/0.3714, allocations: 1.981 MB / 1.076 GB, free: 2.715 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Latch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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 Variables in the result:falCleFalIni.clr,falCleFalIni.u,falCleFalIni.y,falCleTruIni.clr,falCleTruIni.u,falCleTruIni.y,swiCleInp.clr,swiCleInp.u,swiCleInp.y,swiCleInp1.clr,swiCleInp1.u,swiCleInp1.y,time,truCleFalIni.clr,truCleFalIni.u,truCleFalIni.y,truCleTruIni.clr,truCleTruIni.u,truCleTruIni.y