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.0009245/0.0009245, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.001108/0.001108, allocations: 171.9 kB / 16.26 MB, free: 6.66 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.503/1.503, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.133/3.133, allocations: 473.4 MB / 0.7469 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004103/0.0004104, allocations: 10.72 kB / 0.9158 GB, free: 33.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.396, allocations: 162.2 MB / 1.074 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0009534/0.397, allocations: 439.7 kB / 1.075 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002/0.399, allocations: 1.287 MB / 1.076 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.162e-05/0.3991, allocations: 0 / 1.076 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.076e-05/0.3991, allocations: 7.875 kB / 1.076 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.275e-05/0.3992, allocations: 19.91 kB / 1.076 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009064/0.4001, allocations: 292.8 kB / 1.076 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003095/0.4004, allocations: 223.6 kB / 1.076 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.4006, allocations: 16.17 kB / 1.076 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.4007, allocations: 87.86 kB / 1.076 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.4009, allocations: 67.78 kB / 1.077 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.524e-05/0.4009, allocations: 12 kB / 1.077 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.401, allocations: 23.98 kB / 1.077 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.073e-05/0.4011, allocations: 19.91 kB / 1.077 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.4012, allocations: 105.4 kB / 1.077 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003238/0.4016, allocations: 199.7 kB / 1.077 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4016, allocations: 3.938 kB / 1.077 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4016, allocations: 0 / 1.077 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.087e-06/0.4016, allocations: 4 kB / 1.077 GB, free: 4.727 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.0006022/0.4022, allocations: 452.4 kB / 1.077 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4023, allocations: 8.031 kB / 1.077 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.339e-05/0.4023, allocations: 20.83 kB / 1.077 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.4025, allocations: 168.3 kB / 1.077 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.4025, allocations: 12.38 kB / 1.077 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.837e-05/0.4026, allocations: 12.38 kB / 1.078 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.4027, allocations: 54.23 kB / 1.078 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.4027, allocations: 3.938 kB / 1.078 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.4028, allocations: 11.98 kB / 1.078 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.4028, allocations: 0 / 1.078 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.608e-05/0.4028, allocations: 19.94 kB / 1.078 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006618/0.4035, allocations: 420.4 kB / 1.078 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.417e-05/0.4036, allocations: 38.55 kB / 1.078 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.807e-05/0.4036, allocations: 16.86 kB / 1.078 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-06/0.4037, allocations: 4 kB / 1.078 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002378/0.4039, allocations: 111.2 kB / 1.078 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.4039, allocations: 0 / 1.078 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0003192/0.4042, allocations: 137.5 kB / 1.078 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.4043, allocations: 55.41 kB / 1.078 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.4044, allocations: 128.5 kB / 1.078 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.869e-05/0.4045, allocations: 41.7 kB / 1.078 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.564e-05/0.4046, allocations: 100 kB / 1.079 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.365e-05/0.4046, allocations: 15.88 kB / 1.079 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.989e-05/0.4047, allocations: 29.7 kB / 1.079 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.4048, allocations: 326.8 kB / 1.079 GB, free: 2.352 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001982/0.405, allocations: 83.95 kB / 1.079 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.4053, allocations: 141.9 kB / 1.079 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/0.4056, allocations: 231 kB / 1.079 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.4056, allocations: 4 kB / 1.079 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006345/0.4063, allocations: 380.6 kB / 1.08 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.255e-05/0.4064, allocations: 97.09 kB / 1.08 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.4064, allocations: 0 / 1.08 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.4064, allocations: 4 kB / 1.08 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.147e-05/0.4065, allocations: 7.984 kB / 1.08 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.4065, allocations: 3.938 kB / 1.08 GB, free: 1.316 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006214/0.4071, allocations: 119.9 kB / 1.08 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-05/0.4071, allocations: 23.98 kB / 1.08 GB, free: 1.176 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.0001309/0.4073, allocations: 133.7 kB / 1.08 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.4073, allocations: 7.906 kB / 1.08 GB, free: 1.027 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.848e-05/0.4073, allocations: 8.375 kB / 1.08 GB, free: 1.02 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.4073, allocations: 8 kB / 1.08 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4074, allocations: 0 / 1.08 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.4074, allocations: 0 / 1.08 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.4075, allocations: 197.5 kB / 1.08 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4075, allocations: 0 / 1.08 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.014e-05/0.4076, allocations: 0 / 1.08 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.4076, allocations: 8 kB / 1.08 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.4076, allocations: 4.359 kB / 1.08 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.4076, allocations: 0 / 1.08 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4076, allocations: 0 / 1.08 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002066/0.4078, allocations: 148.8 kB / 1.08 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.777e-05/0.4079, allocations: 88.95 kB / 1.081 GB, free: 500 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.4079, allocations: 7.984 kB / 1.081 GB, free: 492 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.372e-05/0.4079, allocations: 0 / 1.081 GB, free: 492 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.408, allocations: 7.984 kB / 1.081 GB, free: 484 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.408, allocations: 8 kB / 1.081 GB, free: 476 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.302e-05/0.4081, allocations: 100.9 kB / 1.081 GB, free: 376 kB / 0.8262 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4081, allocations: 0 / 1.081 GB, free: 376 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002764/0.4084, allocations: 48 kB / 1.081 GB, free: 328 kB / 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.0001691/0.4085, allocations: 104.8 kB / 1.081 GB, free: 216 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005228/0.4091, allocations: 362 kB / 1.081 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4091, allocations: 0 / 1.081 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 7.145e-05/0.4092, allocations: 43.92 kB / 1.081 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.4095, allocations: 25.61 kB / 1.081 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000398/0.4099, allocations: 211.4 kB / 1.081 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.4101, allocations: 0.7004 MB / 1.082 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.63e-05/0.4102, allocations: 8.422 kB / 1.082 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.4102, allocations: 11.44 kB / 1.082 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.4102, allocations: 0 / 1.082 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of Templates: time 0.005819/0.416, allocations: 2.495 MB / 1.085 GB, free: 12.31 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)