Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001747/0.001748, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.0021/0.0021, allocations: 196.3 kB / 16.14 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.602/1.602, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.174/3.174, allocations: 472.6 MB / 0.7447 GB, free: 4.977 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 66.33 kB / 0.9114 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4062/0.4076, allocations: 159.9 MB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002467/0.4101, allocations: 0.7586 MB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002158/0.4123, allocations: 1.303 MB / 1.07 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.227e-05/0.4124, allocations: 3.938 kB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.408e-05/0.4124, allocations: 7.922 kB / 1.07 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.749e-05/0.4125, allocations: 11.92 kB / 1.07 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.4136, allocations: 284.7 kB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003216/0.4139, allocations: 231.5 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.414, allocations: 24.16 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.4143, allocations: 91.8 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001432/0.4144, allocations: 63.84 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.183e-05/0.4145, allocations: 12 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.4146, allocations: 31.97 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.277e-05/0.4146, allocations: 15.92 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.4148, allocations: 75.73 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000366/0.4152, allocations: 211.7 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.4152, allocations: 0 / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.574e-06/0.4152, allocations: 0 / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.562e-06/0.4152, allocations: 7.938 kB / 1.071 GB, free: 7.82 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007649/0.416, allocations: 488.4 kB / 1.071 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.416, allocations: 8.031 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.411e-05/0.4161, allocations: 16.84 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.4163, allocations: 176.2 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.4163, allocations: 8.375 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.4164, allocations: 16.38 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.4165, allocations: 58.22 kB / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.4165, allocations: 3.938 kB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.4165, allocations: 4 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.453e-06/0.4165, allocations: 0 / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.236e-05/0.4166, allocations: 31.91 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005763/0.4172, allocations: 412.5 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.898e-05/0.4173, allocations: 30.58 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.968e-05/0.4173, allocations: 20.94 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-06/0.4174, allocations: 4 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/0.4175, allocations: 103.2 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.683e-06/0.4176, allocations: 0 / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0003232/0.4179, allocations: 141.8 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.4179, allocations: 51.41 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.418, allocations: 135.9 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.4181, allocations: 37.64 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.416e-05/0.4182, allocations: 96.22 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.578e-05/0.4182, allocations: 27.69 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.4184, allocations: 65.67 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.4185, allocations: 326.8 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001936/0.4187, allocations: 83.95 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000251/0.4189, allocations: 145.9 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003152/0.4193, allocations: 231 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.4193, allocations: 8 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000672/0.4199, allocations: 370.4 kB / 1.074 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.4201, allocations: 103 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.4201, allocations: 4 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.4201, allocations: 0 / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.242e-05/0.4201, allocations: 11.92 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.4202, allocations: 4 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005452/0.4207, allocations: 76.03 kB / 1.074 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.165e-05/0.4208, allocations: 23.98 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001664/0.4209, allocations: 140.5 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.957e-05/0.421, allocations: 7.906 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.669e-05/0.421, allocations: 8.375 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.421, allocations: 4 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.421, allocations: 0 / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.421, allocations: 0 / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.4212, allocations: 201.5 kB / 1.074 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.4212, allocations: 4 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.085e-05/0.4212, allocations: 0 / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.4212, allocations: 4 kB / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.4213, allocations: 0 / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.4213, allocations: 0 / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4213, allocations: 0 / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.4215, allocations: 152.8 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.32e-05/0.4215, allocations: 88.95 kB / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.4215, allocations: 0 / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.648e-05/0.4216, allocations: 3.984 kB / 1.074 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.4216, allocations: 11.94 kB / 1.074 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.4216, allocations: 7.984 kB / 1.074 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.029e-05/0.4217, allocations: 95.27 kB / 1.074 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4217, allocations: 4 kB / 1.074 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002958/0.422, allocations: 44 kB / 1.074 GB, free: 3.375 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001885/0.4222, allocations: 107.2 kB / 1.075 GB, free: 3.262 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005181/0.4227, allocations: 358 kB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4228, allocations: 3.938 kB / 1.075 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.628e-05/0.4228, allocations: 35.98 kB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.4231, allocations: 28.34 kB / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000435/0.4236, allocations: 207.4 kB / 1.075 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.4239, allocations: 0.6965 MB / 1.076 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.157e-05/0.4239, allocations: 4.438 kB / 1.076 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.587e-05/0.4239, allocations: 15.44 kB / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of SimCode: time 5.31e-07/0.424, allocations: 0 / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of Templates: time 0.006028/0.43, allocations: 2.501 MB / 1.078 GB, free: 15.37 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1)