Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 90.75 kB / 15.36 MB, free: 0.7383 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.007265/0.007265, allocations: 171.2 kB / 16.26 MB, free: 6.676 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.625/1.625, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.903/2.903, allocations: 473.4 MB / 0.7469 GB, free: 6.051 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005645/0.0005648, allocations: 15.91 kB / 0.9158 GB, free: 33.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3635/0.3641, allocations: 162.2 MB / 1.074 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001778/0.366, allocations: 0.5099 MB / 1.075 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003039/0.369, allocations: 1.155 MB / 1.076 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.357e-05/0.3691, allocations: 0 / 1.076 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.286e-05/0.3692, allocations: 7.922 kB / 1.076 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.3693, allocations: 11.94 kB / 1.076 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009867/0.3704, allocations: 123.7 kB / 1.076 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002237/0.3706, allocations: 107.8 kB / 1.076 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.3708, allocations: 27.91 kB / 1.076 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002109/0.371, allocations: 47.83 kB / 1.076 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.3712, allocations: 39.89 kB / 1.076 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.588e-05/0.3712, allocations: 4 kB / 1.076 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.3714, allocations: 19.98 kB / 1.076 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.563e-05/0.3714, allocations: 15.92 kB / 1.076 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.3716, allocations: 65.53 kB / 1.076 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003038/0.3719, allocations: 107.7 kB / 1.076 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3719, allocations: 4 kB / 1.076 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.424e-06/0.372, allocations: 0 / 1.076 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.372, allocations: 0 / 1.076 GB, free: 5.23 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.001081/0.3731, allocations: 421.2 kB / 1.077 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.3731, allocations: 8.031 kB / 1.077 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.964e-05/0.3732, allocations: 8.922 kB / 1.077 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.3735, allocations: 183.5 kB / 1.077 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.3736, allocations: 4.375 kB / 1.077 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.3737, allocations: 8.375 kB / 1.077 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004834/0.3742, allocations: 90.2 kB / 1.077 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3742, allocations: 192 / 1.077 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.3742, allocations: 3.938 kB / 1.077 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.3742, allocations: 4 kB / 1.077 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000628/0.3749, allocations: 91.86 kB / 1.077 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007444/0.3756, allocations: 344.6 kB / 1.077 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003555/0.376, allocations: 62.53 kB / 1.078 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003718/0.3764, allocations: 60.92 kB / 1.078 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.3765, allocations: 0 / 1.078 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004761/0.3769, allocations: 107.3 kB / 1.078 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 2.294e-06/0.377, allocations: 0 / 1.078 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.001154/0.3781, allocations: 201.4 kB / 1.078 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.257e-05/0.3782, allocations: 51.41 kB / 1.078 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.3785, allocations: 126 kB / 1.078 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.3786, allocations: 33.7 kB / 1.078 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.3787, allocations: 88.14 kB / 1.078 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.985e-05/0.3788, allocations: 19.73 kB / 1.078 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.154e-05/0.3789, allocations: 13.72 kB / 1.078 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001747/0.379, allocations: 326.8 kB / 1.078 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004192/0.3795, allocations: 71.95 kB / 1.079 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004476/0.3799, allocations: 90.52 kB / 1.079 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008281/0.3808, allocations: 172.1 kB / 1.079 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3808, allocations: 0 / 1.079 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.001012/0.3818, allocations: 235.2 kB / 1.079 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.472e-05/0.3819, allocations: 37.69 kB / 1.079 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.3819, allocations: 0 / 1.079 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.382, allocations: 4.062 kB / 1.079 GB, free: 2.152 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/0.3822, allocations: 23.92 kB / 1.079 GB, free: 2.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.581e-05/0.3823, allocations: 8.062 kB / 1.079 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005078/0.3828, allocations: 63.84 kB / 1.079 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.3828, allocations: 4 kB / 1.079 GB, free: 2.055 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.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): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001593/0.383, allocations: 121.8 kB / 1.079 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.3831, allocations: 3.984 kB / 1.079 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.731e-05/0.3831, allocations: 16.36 kB / 1.079 GB, free: 1.906 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3831, allocations: 0 / 1.079 GB, free: 1.906 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3831, allocations: 0 / 1.079 GB, free: 1.906 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3832, allocations: 4 kB / 1.079 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.3834, allocations: 185.5 kB / 1.079 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3834, allocations: 0 / 1.079 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001999/0.3836, allocations: 23.97 kB / 1.08 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.3837, allocations: 4 kB / 1.08 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.3837, allocations: 0 / 1.08 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3837, allocations: 96 / 1.08 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3837, allocations: 3.938 kB / 1.08 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008089/0.3845, allocations: 177.2 kB / 1.08 GB, free: 1.449 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.138e-05/0.3846, allocations: 85.02 kB / 1.08 GB, free: 1.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.275e-05/0.3847, allocations: 8.062 kB / 1.08 GB, free: 1.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001811/0.3849, allocations: 15.98 kB / 1.08 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.676e-05/0.3849, allocations: 3.984 kB / 1.08 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.385, allocations: 7.938 kB / 1.08 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002117/0.3852, allocations: 99.27 kB / 1.08 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.1e-07/0.3852, allocations: 0 / 1.08 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003998/0.3856, allocations: 20 kB / 1.08 GB, free: 1.195 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * 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.0002727/0.3859, allocations: 103.2 kB / 1.08 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001038/0.387, allocations: 215.2 kB / 1.08 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.387, allocations: 0 / 1.08 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000364/0.3874, allocations: 56.09 kB / 1.08 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003914/0.3878, allocations: 19.92 kB / 1.08 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000657/0.3885, allocations: 194.4 kB / 1.08 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008145/0.3893, allocations: 0.6887 MB / 1.081 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.311e-05/0.3894, allocations: 0 / 1.081 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.392e-05/0.3894, allocations: 11.44 kB / 1.081 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of SimCode: time 4.71e-07/0.3894, allocations: 0 / 1.081 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of Templates: time 0.00764/0.3971, allocations: 1.395 MB / 1.083 GB, free: 14.47 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1)