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.001134/0.001134, 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.001357/0.001357, allocations: 195 kB / 16.14 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.424/1.424, allocations: 222.9 MB / 239.8 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.821/2.821, allocations: 461.8 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001249, allocations: 67.89 kB / 0.8984 GB, free: 37.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3292, allocations: 157.4 MB / 1.052 GB, free: 8.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002056/0.3313, allocations: 0.8244 MB / 1.053 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001653/0.333, allocations: 1.272 MB / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.268e-05/0.3331, allocations: 4 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.71e-05/0.3331, allocations: 7.922 kB / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.542e-05/0.3332, allocations: 11.86 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006184/0.3338, allocations: 242.4 kB / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.334, allocations: 231.6 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.3342, allocations: 49.09 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.3343, allocations: 91.78 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.3344, allocations: 83.7 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.3345, allocations: 16 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.377e-05/0.3346, allocations: 27.98 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.845e-05/0.3346, allocations: 31.89 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.3348, allocations: 83.69 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000263/0.335, allocations: 235.6 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.335, allocations: 3.984 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.383e-06/0.335, allocations: 4 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.3351, allocations: 4 kB / 1.055 GB, free: 5.645 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.0006327/0.3357, allocations: 494.5 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3357, allocations: 12.03 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.293e-05/0.3358, allocations: 24.73 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005796/0.3364, allocations: 236.3 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.3364, allocations: 12.36 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.3365, allocations: 24.38 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002241/0.3367, allocations: 131.6 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3367, allocations: 3.938 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.3367, allocations: 7.984 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.3368, allocations: 4 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001363/0.3369, allocations: 67.95 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006/0.3375, allocations: 456.2 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.3377, allocations: 102.5 kB / 1.057 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.122e-05/0.3377, allocations: 44.83 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 6.402e-06/0.3378, allocations: 0 / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002513/0.338, allocations: 135.2 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.338, allocations: 0 / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.0004705/0.3385, allocations: 244.1 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.3386, allocations: 55.39 kB / 1.057 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.3387, allocations: 141.6 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.3387, allocations: 33.64 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.112e-05/0.3388, allocations: 112.6 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.707e-05/0.3389, allocations: 35.55 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.339, allocations: 73.67 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001293/0.3391, allocations: 322.8 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.3392, allocations: 71.89 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.3394, allocations: 123.7 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.3397, allocations: 219 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.123e-06/0.3397, allocations: 0 / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000448/0.3401, allocations: 304.7 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.303e-05/0.3402, allocations: 67.39 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.3402, allocations: 4 kB / 1.059 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.3402, allocations: 0 / 1.059 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.698e-05/0.3403, allocations: 12.19 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3403, allocations: 4 kB / 1.059 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.3406, allocations: 63.78 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.129e-05/0.3406, allocations: 15.98 kB / 1.059 GB, free: 1.734 MB / 0.8106 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.0001186/0.3408, allocations: 138.9 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.297e-05/0.3408, allocations: 19.75 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.3408, allocations: 12.84 kB / 1.059 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.3408, allocations: 0 / 1.059 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3408, allocations: 0 / 1.059 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3409, allocations: 8 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004745/0.3413, allocations: 492.8 kB / 1.059 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.3413, allocations: 0 / 1.059 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.344e-05/0.3414, allocations: 4 kB / 1.059 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3414, allocations: 4 kB / 1.059 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.3414, allocations: 7.984 kB / 1.059 GB, free: 1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3414, allocations: 4 kB / 1.059 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3414, allocations: 0 / 1.059 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000286/0.3417, allocations: 283.3 kB / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.044e-05/0.3418, allocations: 88.95 kB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.3418, allocations: 7.984 kB / 1.06 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.683e-05/0.3418, allocations: 7.938 kB / 1.06 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.823e-05/0.3419, allocations: 15.97 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.3419, allocations: 12 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.369e-05/0.342, allocations: 98.14 kB / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.342, allocations: 0 / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002928/0.3423, allocations: 51.89 kB / 1.06 GB, free: 420 kB / 0.8106 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.0001739/0.3425, allocations: 103.8 kB / 1.06 GB, free: 308 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004177/0.3429, allocations: 306.7 kB / 1.06 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3429, allocations: 3.938 kB / 1.06 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.343, allocations: 75 kB / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.3433, allocations: 23.92 kB / 1.06 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004815/0.3438, allocations: 293.7 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.3441, allocations: 0.7088 MB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.065e-05/0.3441, allocations: 13.09 kB / 1.061 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.274e-05/0.3442, allocations: 11.44 kB / 1.061 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3442, allocations: 4 kB / 1.061 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of Templates: time 0.004728/0.3489, allocations: 2.045 MB / 1.063 GB, free: 12.78 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