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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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 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_maint.7.0.x_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_maint.7.0.x_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.01168/0.01168, allocations: 104.9 kB / 15.73 MB, free: 6.043 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.002047/0.002047, allocations: 191.1 kB / 16.67 MB, free: 5.977 MB / 14.72 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.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.725/1.725, allocations: 251.7 MB / 0.5094 GB, free: 3.039 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 67.91 kB / 0.7258 GB, free: 9.137 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2482, allocations: 104.7 MB / 0.8281 GB, free: 324 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002704/0.2509, allocations: 1.474 MB / 0.8295 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0005186/0.2515, allocations: 220.2 kB / 0.8297 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.976e-05/0.2516, allocations: 4 kB / 0.8297 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.294e-05/0.2516, allocations: 3.938 kB / 0.8297 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.175e-05/0.2517, allocations: 11.86 kB / 0.8297 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002037/0.2519, allocations: 23.92 kB / 0.8298 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.2521, allocations: 71.77 kB / 0.8298 GB, free: 14.5 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.2522, allocations: 19.98 kB / 0.8298 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.562e-05/0.2523, allocations: 23.92 kB / 0.8299 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.94e-05/0.2524, allocations: 35.78 kB / 0.8299 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.653e-05/0.2524, allocations: 8 kB / 0.8299 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.537e-05/0.2525, allocations: 4 kB / 0.8299 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.297e-05/0.2525, allocations: 15.92 kB / 0.8299 GB, free: 14.4 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.772e-05/0.2526, allocations: 27.86 kB / 0.83 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001552/0.2527, allocations: 67.7 kB / 0.83 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2527, allocations: 4 kB / 0.83 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.897e-06/0.2528, allocations: 4 kB / 0.83 GB, free: 14.3 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.034e-05/0.2528, allocations: 0 / 0.83 GB, free: 14.3 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008707/0.2536, allocations: 391.2 kB / 0.8304 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/0.2537, allocations: 12.03 kB / 0.8304 GB, free: 13.85 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.44e-05/0.2538, allocations: 8.922 kB / 0.8304 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002109/0.254, allocations: 172.2 kB / 0.8306 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.254, allocations: 4.375 kB / 0.8306 GB, free: 13.63 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.2541, allocations: 8.375 kB / 0.8306 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003265/0.2544, allocations: 82.08 kB / 0.8307 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.2544, allocations: 192 / 0.8307 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.2544, allocations: 3.938 kB / 0.8307 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.2545, allocations: 4 kB / 0.8307 GB, free: 13.53 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003293/0.2548, allocations: 75.92 kB / 0.8308 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006132/0.2554, allocations: 292.7 kB / 0.831 GB, free: 13.12 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.2556, allocations: 66.47 kB / 0.8311 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.2558, allocations: 44.95 kB / 0.8311 GB, free: 13 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.2559, allocations: 3.984 kB / 0.8311 GB, free: 13 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003513/0.2562, allocations: 91.34 kB / 0.8312 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=6): time 3.005e-06/0.2562, allocations: 0 / 0.8312 GB, free: 12.89 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.0006661/0.2569, allocations: 165.4 kB / 0.8314 GB, free: 12.73 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.126e-05/0.257, allocations: 51.41 kB / 0.8314 GB, free: 12.66 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.2571, allocations: 121.8 kB / 0.8316 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.2572, allocations: 29.7 kB / 0.8316 GB, free: 12.5 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 9.147e-05/0.2573, allocations: 92.12 kB / 0.8317 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.041e-05/0.2573, allocations: 15.75 kB / 0.8317 GB, free: 12.39 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.401e-05/0.2574, allocations: 25.72 kB / 0.8317 GB, free: 12.36 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2575, allocations: 318.8 kB / 0.832 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.2577, allocations: 35.97 kB / 0.832 GB, free: 12 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.2579, allocations: 53.67 kB / 0.8321 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.2582, allocations: 89.58 kB / 0.8322 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2582, allocations: 0 / 0.8322 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003525/0.2585, allocations: 117.5 kB / 0.8323 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.2586, allocations: 12.03 kB / 0.8323 GB, free: 11.72 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2586, allocations: 3.984 kB / 0.8323 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.2586, allocations: 0 / 0.8323 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.2587, allocations: 19.92 kB / 0.8323 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.2588, allocations: 0 / 0.8323 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.2589, allocations: 19.97 kB / 0.8324 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.2589, allocations: 0 / 0.8324 GB, free: 11.68 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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 9.534e-05/0.259, allocations: 121.8 kB / 0.8325 GB, free: 11.55 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.259, allocations: 7.906 kB / 0.8325 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.2591, allocations: 8.375 kB / 0.8325 GB, free: 11.53 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2591, allocations: 4 kB / 0.8325 GB, free: 11.53 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2591, allocations: 0 / 0.8325 GB, free: 11.53 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2591, allocations: 0 / 0.8325 GB, free: 11.53 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001663/0.2593, allocations: 189.6 kB / 0.8327 GB, free: 11.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2593, allocations: 3.938 kB / 0.8327 GB, free: 11.29 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.2594, allocations: 15.98 kB / 0.8327 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.2594, allocations: 0 / 0.8327 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.2594, allocations: 8.312 kB / 0.8327 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.2594, allocations: 4 kB / 0.8327 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2594, allocations: 4.141 kB / 0.8327 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003789/0.2598, allocations: 144.8 kB / 0.8328 GB, free: 11.1 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.032e-05/0.2599, allocations: 88.95 kB / 0.8329 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.2599, allocations: 7.984 kB / 0.8329 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.26, allocations: 15.98 kB / 0.8329 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.165e-05/0.2601, allocations: 11.92 kB / 0.833 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.2601, allocations: 4 kB / 0.833 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.775e-05/0.2602, allocations: 91.7 kB / 0.8331 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2602, allocations: 0 / 0.8331 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002094/0.2604, allocations: 16 kB / 0.8331 GB, free: 10.85 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,booPul.y,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001567/0.2605, allocations: 103.2 kB / 0.8332 GB, free: 10.74 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003858/0.2609, allocations: 91.84 kB / 0.8333 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2609, allocations: 0 / 0.8333 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.2611, allocations: 39.97 kB / 0.8333 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.2614, allocations: 30.78 kB / 0.8333 GB, free: 10.58 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004413/0.2618, allocations: 158 kB / 0.8335 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.2621, allocations: 0.6922 MB / 0.8341 GB, free: 9.68 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.389e-05/0.2621, allocations: 4 kB / 0.8342 GB, free: 9.676 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.378e-05/0.2622, allocations: 11.44 kB / 0.8342 GB, free: 9.664 MB / 0.6544 GB Notification: Performance of SimCode: time 6.82e-07/0.2622, allocations: 0 / 0.8342 GB, free: 9.664 MB / 0.6544 GB Notification: Performance of Templates: time 0.00389/0.2661, allocations: 1.054 MB / 0.8352 GB, free: 8.621 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1)