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.001633/0.001633, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001993/0.001993, allocations: 193.7 kB / 16.25 MB, free: 6.621 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.468/1.468, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.933/2.933, allocations: 469.8 MB / 0.742 GB, free: 7.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 65.36 kB / 0.908 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3365, allocations: 159.2 MB / 1.063 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002129/0.3387, allocations: 0.8231 MB / 1.064 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001716/0.3404, allocations: 1.244 MB / 1.065 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.007e-05/0.3405, allocations: 0 / 1.065 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.844e-05/0.3406, allocations: 7.922 kB / 1.065 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.19e-05/0.3407, allocations: 19.86 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007262/0.3414, allocations: 242.6 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.3417, allocations: 263.6 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.3419, allocations: 49.08 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.342, allocations: 107.8 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.3422, allocations: 87.69 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.23e-05/0.3422, allocations: 24 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.471e-05/0.3423, allocations: 39.98 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.283e-05/0.3424, allocations: 35.89 kB / 1.066 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.3425, allocations: 91.69 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003079/0.3428, allocations: 251.5 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3428, allocations: 0 / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of FrontEnd: time 5.159e-06/0.3429, allocations: 3.984 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3429, allocations: 0 / 1.067 GB, free: 11.36 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.000718/0.3436, allocations: 498.5 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.3436, allocations: 12.03 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.091e-05/0.3437, allocations: 16.84 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005678/0.3443, allocations: 240.2 kB / 1.067 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.3443, allocations: 20.3 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.277e-05/0.3444, allocations: 20.38 kB / 1.067 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.3446, allocations: 130.1 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.3447, allocations: 7.938 kB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.3447, allocations: 7.984 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.3447, allocations: 4 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.3448, allocations: 67.95 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006451/0.3455, allocations: 456.2 kB / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.3457, allocations: 98.47 kB / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.424e-05/0.3458, allocations: 44.83 kB / 1.068 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.3458, allocations: 0 / 1.068 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002963/0.3461, allocations: 132.9 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.403e-06/0.3461, allocations: 0 / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0004483/0.3466, allocations: 237.4 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.3466, allocations: 59.39 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.3468, allocations: 138.5 kB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.871e-05/0.3468, allocations: 33.7 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.837e-05/0.3469, allocations: 108.6 kB / 1.069 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.3469, allocations: 39.55 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.3471, allocations: 69.67 kB / 1.069 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.3472, allocations: 322.8 kB / 1.069 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.3474, allocations: 67.95 kB / 1.069 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.3476, allocations: 130.1 kB / 1.069 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/0.3479, allocations: 216.8 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3479, allocations: 4 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004867/0.3484, allocations: 312.6 kB / 1.07 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.992e-05/0.3484, allocations: 68.58 kB / 1.07 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3484, allocations: 4 kB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3485, allocations: 0 / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.089e-05/0.3485, allocations: 8 kB / 1.07 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.876e-05/0.3485, allocations: 4 kB / 1.07 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.3488, allocations: 64.12 kB / 1.07 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.806e-05/0.3489, allocations: 23.92 kB / 1.07 GB, free: 7.445 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.0001415/0.349, allocations: 133.8 kB / 1.07 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.254e-05/0.3491, allocations: 15.75 kB / 1.07 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.685e-05/0.3491, allocations: 16.84 kB / 1.07 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3491, allocations: 0 / 1.07 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3491, allocations: 0 / 1.07 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-06/0.3491, allocations: 4 kB / 1.07 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005311/0.3497, allocations: 496 kB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3497, allocations: 0 / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.054e-05/0.3497, allocations: 0 / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.3497, allocations: 7.984 kB / 1.071 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.3497, allocations: 3.984 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.3497, allocations: 8 kB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.3497, allocations: 0 / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003221/0.3501, allocations: 289.1 kB / 1.071 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.096e-05/0.3501, allocations: 88.95 kB / 1.071 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.307e-05/0.3502, allocations: 3.984 kB / 1.071 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.665e-05/0.3502, allocations: 8 kB / 1.071 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.3503, allocations: 15.91 kB / 1.071 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.3503, allocations: 16 kB / 1.071 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.672e-05/0.3504, allocations: 96.39 kB / 1.071 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3504, allocations: 0 / 1.071 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003066/0.3507, allocations: 51.89 kB / 1.071 GB, free: 6.121 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.0001837/0.3509, allocations: 107.2 kB / 1.071 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004475/0.3514, allocations: 306.9 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3514, allocations: 4.125 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.3515, allocations: 71.97 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.3518, allocations: 19.92 kB / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005225/0.3523, allocations: 305.9 kB / 1.072 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.3527, allocations: 0.7085 MB / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.538e-05/0.3527, allocations: 17.08 kB / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.3528, allocations: 15.44 kB / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3528, allocations: 0 / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.005732/0.3585, allocations: 2.128 MB / 1.075 GB, free: 2.387 MB / 0.8262 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches