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.001543/0.001543, allocations: 104.9 kB / 15.98 MB, free: 5.891 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.001559/0.001559, allocations: 189.5 kB / 16.91 MB, free: 5.746 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.472/1.472, allocations: 222.9 MB / 240.6 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.899/2.899, allocations: 482.4 MB / 0.755 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 70.73 kB / 0.924 GB, free: 29.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3236, allocations: 162.2 MB / 1.082 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002174/0.3258, allocations: 0.8103 MB / 1.083 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001755/0.3276, allocations: 1.252 MB / 1.084 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.048e-05/0.3276, allocations: 0 / 1.084 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 5.105e-05/0.3277, allocations: 7.922 kB / 1.084 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.078e-05/0.3278, allocations: 7.938 kB / 1.084 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007783/0.3286, allocations: 234 kB / 1.085 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003024/0.3289, allocations: 271.3 kB / 1.085 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.3291, allocations: 65.05 kB / 1.085 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.3292, allocations: 95.81 kB / 1.085 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.3293, allocations: 95.67 kB / 1.085 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.565e-05/0.3294, allocations: 28 kB / 1.085 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.359e-05/0.3295, allocations: 35.98 kB / 1.085 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 5.026e-05/0.3296, allocations: 35.91 kB / 1.085 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.3297, allocations: 95.67 kB / 1.085 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002669/0.33, allocations: 175.8 kB / 1.086 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.33, allocations: 0 / 1.086 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.324e-06/0.33, allocations: 0 / 1.086 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.234e-06/0.33, allocations: 0 / 1.086 GB, free: 10.41 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.0008898/0.3309, allocations: 0.4906 MB / 1.086 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/0.3309, allocations: 8.031 kB / 1.086 GB, free: 9.844 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.3311, allocations: 24.84 kB / 1.086 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006837/0.3318, allocations: 248.1 kB / 1.086 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.158e-05/0.3318, allocations: 12.38 kB / 1.086 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.135e-05/0.3319, allocations: 20.36 kB / 1.086 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.3322, allocations: 130.1 kB / 1.086 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.3322, allocations: 7.938 kB / 1.086 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.3322, allocations: 0 / 1.086 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.3322, allocations: 8 kB / 1.086 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001593/0.3324, allocations: 73.2 kB / 1.087 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007709/0.3332, allocations: 456.1 kB / 1.087 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.3334, allocations: 102.5 kB / 1.087 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.052e-05/0.3335, allocations: 44.77 kB / 1.087 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.3335, allocations: 4 kB / 1.087 GB, free: 8.633 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/0.3338, allocations: 127.2 kB / 1.087 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.522e-06/0.3338, allocations: 0 / 1.087 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.0005199/0.3343, allocations: 237.4 kB / 1.087 GB, free: 8.258 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.3344, allocations: 63.34 kB / 1.088 GB, free: 8.184 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.3346, allocations: 141.7 kB / 1.088 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.335e-05/0.3346, allocations: 33.7 kB / 1.088 GB, free: 7.996 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.3348, allocations: 108.6 kB / 1.088 GB, free: 7.883 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.208e-05/0.3348, allocations: 39.53 kB / 1.088 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.3349, allocations: 69.67 kB / 1.088 GB, free: 7.77 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001876/0.3351, allocations: 322.8 kB / 1.088 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.3353, allocations: 63.97 kB / 1.088 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.3355, allocations: 131.7 kB / 1.088 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.3358, allocations: 214.1 kB / 1.089 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3358, allocations: 0 / 1.089 GB, free: 6.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005114/0.3364, allocations: 312.6 kB / 1.089 GB, free: 6.656 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.563e-05/0.3364, allocations: 67.41 kB / 1.089 GB, free: 6.578 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3365, allocations: 0 / 1.089 GB, free: 6.578 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.3365, allocations: 7.984 kB / 1.089 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.714e-05/0.3365, allocations: 11.88 kB / 1.089 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.3366, allocations: 4 kB / 1.089 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003808/0.3369, allocations: 64 kB / 1.089 GB, free: 6.492 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.805e-05/0.337, allocations: 15.98 kB / 1.089 GB, free: 6.477 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.0001973/0.3372, allocations: 141.7 kB / 1.089 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.3372, allocations: 11.84 kB / 1.089 GB, free: 6.316 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.799e-05/0.3373, allocations: 16.83 kB / 1.089 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3373, allocations: 0 / 1.089 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3373, allocations: 0 / 1.089 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3373, allocations: 4 kB / 1.089 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005794/0.3379, allocations: 490.3 kB / 1.09 GB, free: 5.762 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3379, allocations: 0 / 1.09 GB, free: 5.762 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.397e-05/0.3379, allocations: 4 kB / 1.09 GB, free: 5.758 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3379, allocations: 0 / 1.09 GB, free: 5.758 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.338, allocations: 11.98 kB / 1.09 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.338, allocations: 0 / 1.09 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.338, allocations: 0 / 1.09 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003329/0.3383, allocations: 302 kB / 1.09 GB, free: 5.438 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.201e-05/0.3384, allocations: 88.95 kB / 1.09 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.3384, allocations: 7.984 kB / 1.09 GB, free: 5.324 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.864e-05/0.3385, allocations: 0 / 1.09 GB, free: 5.324 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.654e-05/0.3385, allocations: 15.98 kB / 1.09 GB, free: 5.309 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.3386, allocations: 11.98 kB / 1.09 GB, free: 5.297 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.638e-05/0.3386, allocations: 102.3 kB / 1.09 GB, free: 5.199 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.71e-07/0.3386, allocations: 0 / 1.09 GB, free: 5.199 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002998/0.3389, allocations: 44 kB / 1.09 GB, free: 5.156 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.0002157/0.3392, allocations: 107.7 kB / 1.09 GB, free: 5.043 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004567/0.3396, allocations: 310.5 kB / 1.091 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3396, allocations: 0 / 1.091 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.3398, allocations: 75.91 kB / 1.091 GB, free: 4.641 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.3401, allocations: 29.98 kB / 1.091 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005508/0.3407, allocations: 321.2 kB / 1.091 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.341, allocations: 0.7085 MB / 1.092 GB, free: 3.535 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.589e-05/0.3411, allocations: 23.42 kB / 1.092 GB, free: 3.512 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.3411, allocations: 0 / 1.092 GB, free: 3.512 MB / 0.8419 GB Notification: Performance of Templates: time 0.004088/0.3452, allocations: 1.97 MB / 1.094 GB, free: 1.555 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=400 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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