Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001369/0.001369, 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.0016/0.0016, allocations: 192.2 kB / 16.13 MB, free: 6.715 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.577/1.577, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.1/3.1, allocations: 472.6 MB / 0.7447 GB, free: 4.992 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 70.97 kB / 0.9114 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4077/0.4092, allocations: 159.9 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002373/0.4116, allocations: 0.8242 MB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001797/0.4134, allocations: 1.276 MB / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.32e-05/0.4135, allocations: 3.938 kB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.366e-05/0.4136, allocations: 7.875 kB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.594e-05/0.4137, allocations: 15.91 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00072/0.4144, allocations: 233.1 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002694/0.4147, allocations: 227.4 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/0.4149, allocations: 53.08 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.4151, allocations: 95.73 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.4152, allocations: 87.69 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.477e-05/0.4153, allocations: 12 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001123/0.4154, allocations: 35.98 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.15e-05/0.4154, allocations: 27.91 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001243/0.4156, allocations: 87.67 kB / 1.07 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003156/0.4159, allocations: 235.6 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.4159, allocations: 0 / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4159, allocations: 0 / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.4159, allocations: 0 / 1.071 GB, free: 7.691 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.0007666/0.4167, allocations: 498.5 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.4168, allocations: 8.031 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.091e-05/0.4168, allocations: 20.83 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005753/0.4174, allocations: 240.2 kB / 1.071 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.4175, allocations: 16.36 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.269e-05/0.4175, allocations: 20.38 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003132/0.4178, allocations: 134.1 kB / 1.072 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.4179, allocations: 7.938 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.4179, allocations: 4 kB / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.4179, allocations: 4 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001604/0.4181, allocations: 69.27 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008521/0.4189, allocations: 456.1 kB / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.4192, allocations: 102.5 kB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.617e-05/0.4192, allocations: 40.83 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.4193, allocations: 4 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004119/0.4197, allocations: 127.2 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.793e-06/0.4197, allocations: 7.938 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0005481/0.4203, allocations: 242.9 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.4203, allocations: 55.41 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.4205, allocations: 140.4 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.4205, allocations: 29.7 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.4207, allocations: 116.5 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.4207, allocations: 31.58 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.4208, allocations: 69.67 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.421, allocations: 326.8 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.4212, allocations: 67.95 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.4214, allocations: 134.4 kB / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.4217, allocations: 212.7 kB / 1.074 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.4217, allocations: 4 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005639/0.4223, allocations: 316.6 kB / 1.074 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.551e-05/0.4224, allocations: 63.39 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4224, allocations: 0 / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-05/0.4224, allocations: 4 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.898e-05/0.4225, allocations: 11.94 kB / 1.074 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/0.4225, allocations: 11.98 kB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003524/0.4228, allocations: 56.05 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.888e-05/0.4229, allocations: 19.98 kB / 1.074 GB, free: 3.773 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.0001698/0.4231, allocations: 141.7 kB / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.435e-05/0.4231, allocations: 11.84 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.702e-05/0.4232, allocations: 12.84 kB / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.4232, allocations: 4 kB / 1.074 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.4232, allocations: 0 / 1.074 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.4232, allocations: 3.984 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005742/0.4238, allocations: 488.2 kB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.4238, allocations: 0 / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.355e-05/0.4238, allocations: 3.938 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.4238, allocations: 3.984 kB / 1.075 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.4238, allocations: 4 kB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.4238, allocations: 4 kB / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4238, allocations: 0 / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003405/0.4242, allocations: 287.3 kB / 1.075 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.411e-05/0.4243, allocations: 96.84 kB / 1.075 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.4243, allocations: 0 / 1.075 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.422e-05/0.4244, allocations: 8 kB / 1.075 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.4244, allocations: 15.91 kB / 1.075 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.667e-05/0.4244, allocations: 12 kB / 1.075 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.423e-05/0.4245, allocations: 99.27 kB / 1.075 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.11e-07/0.4245, allocations: 0 / 1.075 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003575/0.4249, allocations: 43.98 kB / 1.075 GB, free: 2.457 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.0002393/0.4251, allocations: 115.7 kB / 1.075 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000444/0.4256, allocations: 292.3 kB / 1.076 GB, free: 2.027 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4256, allocations: 0.5 kB / 1.076 GB, free: 2.027 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.4257, allocations: 79.97 kB / 1.076 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.4261, allocations: 32.02 kB / 1.076 GB, free: 1.918 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005824/0.4267, allocations: 293.2 kB / 1.076 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.427, allocations: 0.7127 MB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.313e-05/0.427, allocations: 9.094 kB / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.504e-05/0.4271, allocations: 19.42 kB / 1.077 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.4271, allocations: 0 / 1.077 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of Templates: time 0.005536/0.4326, allocations: 2.045 MB / 1.079 GB, free: 14.82 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)