Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.406/1.406, allocations: 252 MB / 267.6 MB, free: 10.9 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001007/0.001008, allocations: 185.6 kB / 327.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.822/1.822, allocations: 205.4 MB / 0.5783 GB, free: 20.5 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008297/0.0008296, allocations: 86.36 kB / 0.6829 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005224/0.0005226, allocations: 8.688 kB / 0.797 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2916, allocations: 106.4 MB / 0.9008 GB, free: 64.22 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.0018/0.2935, allocations: 1.186 MB / 0.902 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006671/0.2942, allocations: 352.1 kB / 0.9023 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.84e-05/0.2942, allocations: 4 kB / 0.9023 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.465e-05/0.2943, allocations: 7.922 kB / 0.9023 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001024/0.2944, allocations: 19.84 kB / 0.9024 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.2947, allocations: 83.88 kB / 0.9024 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.2949, allocations: 219.3 kB / 0.9027 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.295, allocations: 45.25 kB / 0.9027 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.439e-05/0.2951, allocations: 83.8 kB / 0.9028 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.78e-05/0.2952, allocations: 91.67 kB / 0.9029 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.2953, allocations: 15.94 kB / 0.9029 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.772e-05/0.2953, allocations: 12 kB / 0.9029 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.111e-05/0.2953, allocations: 51.86 kB / 0.9029 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.839e-05/0.2954, allocations: 57.58 kB / 0.903 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.2956, allocations: 163.6 kB / 0.9032 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2956, allocations: 0 / 0.9032 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.412e-06/0.2956, allocations: 4 kB / 0.9032 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.2956, allocations: 0 / 0.9032 GB, free: 61.82 MB / 0.6042 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.0006435/0.2962, allocations: 453.2 kB / 0.9036 GB, free: 61.33 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.2963, allocations: 8.031 kB / 0.9036 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.902e-05/0.2963, allocations: 27.89 kB / 0.9036 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.2967, allocations: 256.7 kB / 0.9039 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.785e-05/0.2967, allocations: 27.92 kB / 0.9039 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.2968, allocations: 23.98 kB / 0.9039 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.2971, allocations: 202.1 kB / 0.9041 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.2971, allocations: 0 / 0.9041 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.2971, allocations: 11.98 kB / 0.9041 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.2971, allocations: 8 kB / 0.9041 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.2973, allocations: 99.88 kB / 0.9042 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007378/0.2981, allocations: 0.5352 MB / 0.9047 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005823/0.2986, allocations: 294.5 kB / 0.905 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.2988, allocations: 112.8 kB / 0.9051 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.2988, allocations: 7.953 kB / 0.9051 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005345/0.2994, allocations: 474.2 kB / 0.9056 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=42): time 1.603e-06/0.2994, allocations: 3.938 kB / 0.9056 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of matching and sorting (n=42): time 0.0007279/0.3001, allocations: 0.5164 MB / 0.9061 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.3002, allocations: 55.41 kB / 0.9062 GB, free: 58.56 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.842e-05/0.3002, allocations: 166.1 kB / 0.9063 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.989e-05/0.3003, allocations: 45.7 kB / 0.9064 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.59e-05/0.3003, allocations: 120.9 kB / 0.9065 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.266e-05/0.3004, allocations: 98.92 kB / 0.9066 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.745e-05/0.3004, allocations: 8 kB / 0.9066 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.851e-05/0.3005, allocations: 338.8 kB / 0.9069 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.3007, allocations: 125 kB / 0.907 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002121/0.3009, allocations: 231.5 kB / 0.9072 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.301, allocations: 94.19 kB / 0.9073 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.301, allocations: 0 / 0.9073 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0004481/0.3015, allocations: 390.5 kB / 0.9077 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.3015, allocations: 4 kB / 0.9077 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3015, allocations: 4.312 kB / 0.9077 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3015, allocations: 8 kB / 0.9077 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.3017, allocations: 35.86 kB / 0.9078 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.3017, allocations: 4 kB / 0.9078 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.3018, allocations: 43.67 kB / 0.9078 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.3019, allocations: 16 kB / 0.9078 GB, free: 56.8 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.falCle.y,$PRE.truCle.y,$PRE.iniFalOut.y,$PRE.iniTruOut.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition26,$whenCondition25,tru.y,fal.y,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.falCle.u,falCle.u,falCle.y,$PRE.truCle.u,truCle.u,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,iniTruOut.y,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,swiCleInp1.y,$PRE.cleInp.pulseStart,cleInp.pulseStart,$PRE.latInp.pulseStart,latInp.pulseStart,$PRE.iniTruOut.clr,iniTruOut.clr,$PRE.iniFalOut.clr,iniFalOut.clr,$PRE.falCle.clr,falCle.clr,$PRE.truCle.clr,truCle.clr) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001293/0.302, allocations: 178.9 kB / 0.908 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.302, allocations: 31.66 kB / 0.908 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.648e-05/0.3021, allocations: 34.31 kB / 0.908 GB, free: 56.55 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.3021, allocations: 4 kB / 0.9081 GB, free: 56.54 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3021, allocations: 0 / 0.9081 GB, free: 56.54 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.3021, allocations: 3.984 kB / 0.9081 GB, free: 56.54 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007679/0.3029, allocations: 0.8111 MB / 0.9088 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.3029, allocations: 3.953 kB / 0.9089 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.083e-05/0.303, allocations: 15.98 kB / 0.9089 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.303, allocations: 0 / 0.9089 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.989e-05/0.303, allocations: 15.98 kB / 0.9089 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.303, allocations: 15.86 kB / 0.9089 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.303, allocations: 0 / 0.9089 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005137/0.3035, allocations: 0.4988 MB / 0.9094 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.632e-05/0.3036, allocations: 96.78 kB / 0.9095 GB, free: 54.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.832e-05/0.3036, allocations: 19.98 kB / 0.9095 GB, free: 54.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.3038, allocations: 23.97 kB / 0.9095 GB, free: 54.95 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.304, allocations: 71.86 kB / 0.9096 GB, free: 54.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.162e-05/0.3041, allocations: 27.98 kB / 0.9096 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.592e-05/0.3042, allocations: 111.8 kB / 0.9097 GB, free: 54.74 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.753e-06/0.3042, allocations: 0 / 0.9097 GB, free: 54.74 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005163/0.3047, allocations: 75.92 kB / 0.9098 GB, free: 54.67 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCle.u,falCle.y,truCle.u,truCle.y,iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 14 (iniFalOut.u,iniTruOut.u,falCle.u,truCle.u,swiCleInp.u,swiCleInp.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001594/0.3049, allocations: 133.8 kB / 0.9099 GB, free: 54.53 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004789/0.3053, allocations: 359.9 kB / 0.9103 GB, free: 54.18 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3054, allocations: 4.062 kB / 0.9103 GB, free: 54.18 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.3056, allocations: 215.8 kB / 0.9105 GB, free: 53.97 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003657/0.306, allocations: 39.97 kB / 0.9105 GB, free: 53.93 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008444/0.3068, allocations: 0.53 MB / 0.911 GB, free: 53.37 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001513/0.307, allocations: 0.7296 MB / 0.9117 GB, free: 52.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.3071, allocations: 39.42 kB / 0.9118 GB, free: 52.57 MB / 0.6042 GB Notification: Performance of SimCode: time 2e-07/0.3071, allocations: 0 / 0.9118 GB, free: 52.57 MB / 0.6042 GB Notification: Performance of Templates: time 0.004767/0.3119, allocations: 3.257 MB / 0.915 GB, free: 49.32 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)