Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.002002/0.002002, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002088/0.002088, allocations: 192.6 kB / 16.14 MB, free: 6.688 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.525/1.525, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.859/2.859, allocations: 472.6 MB / 0.7447 GB, free: 4.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 63.31 kB / 0.9114 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.394, allocations: 159.9 MB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.003169/0.3973, allocations: 0.8333 MB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002189/0.3995, allocations: 1.174 MB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.93e-05/0.3996, allocations: 0 / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.875e-05/0.3997, allocations: 0 / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.3998, allocations: 15.86 kB / 1.07 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000694/0.4005, allocations: 119.3 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002129/0.4007, allocations: 119.7 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.4009, allocations: 15.98 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.4011, allocations: 47.89 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.4012, allocations: 39.83 kB / 1.07 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.929e-05/0.4013, allocations: 12 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.4014, allocations: 27.91 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.433e-05/0.4014, allocations: 15.92 kB / 1.07 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.797e-05/0.4016, allocations: 39.84 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003095/0.4019, allocations: 107.7 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.4019, allocations: 0 / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.854e-06/0.4019, allocations: 4 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.556e-06/0.4019, allocations: 0 / 1.07 GB, free: 8.348 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.001139/0.4031, allocations: 425.2 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 7.417e-05/0.4031, allocations: 12.03 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.4032, allocations: 8.844 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.4035, allocations: 184.2 kB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/0.4035, allocations: 4.375 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.34e-05/0.4036, allocations: 8.375 kB / 1.071 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003708/0.4039, allocations: 78.2 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.404, allocations: 4.125 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.404, allocations: 11.88 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.404, allocations: 0 / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.4043, allocations: 67.92 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000722/0.4051, allocations: 324.7 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.4053, allocations: 58.55 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001796/0.4055, allocations: 44.84 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.4055, allocations: 0 / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003341/0.4059, allocations: 103.3 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 2.084e-06/0.4059, allocations: 0 / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0007327/0.4066, allocations: 161.5 kB / 1.071 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.4067, allocations: 55.34 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.4069, allocations: 129.6 kB / 1.072 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.4069, allocations: 33.7 kB / 1.072 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.4071, allocations: 96.11 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.591e-05/0.4071, allocations: 19.73 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.4072, allocations: 29.7 kB / 1.072 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001707/0.4074, allocations: 322.8 kB / 1.072 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002386/0.4076, allocations: 63.94 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.4079, allocations: 82.52 kB / 1.072 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003948/0.4083, allocations: 144.2 kB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4083, allocations: 0 / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005637/0.4088, allocations: 211.1 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.139e-05/0.4089, allocations: 37.7 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.4089, allocations: 0 / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.656e-05/0.409, allocations: 8.078 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.4091, allocations: 23.98 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.4091, allocations: 0 / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.4094, allocations: 35.95 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.4094, allocations: 11.98 kB / 1.073 GB, free: 5.336 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.0001188/0.4096, allocations: 117.8 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.4096, allocations: 15.89 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.661e-05/0.4096, allocations: 4.375 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.4096, allocations: 7.938 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.4097, allocations: 0 / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/0.4097, allocations: 3.984 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001794/0.4098, allocations: 185.6 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.4099, allocations: 3.938 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.41, allocations: 15.98 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.41, allocations: 0 / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.41, allocations: 4 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.41, allocations: 8.297 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.41, allocations: 4 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004343/0.4105, allocations: 152.9 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/0.4105, allocations: 81.02 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.196e-05/0.4106, allocations: 0 / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.933e-05/0.4107, allocations: 19.98 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.11e-05/0.4107, allocations: 7.984 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.575e-06/0.4107, allocations: 3.938 kB / 1.073 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.471e-05/0.4108, allocations: 95.27 kB / 1.073 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of sort global known variables: time 4.4e-07/0.4108, allocations: 0 / 1.073 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002752/0.4111, allocations: 24 kB / 1.073 GB, free: 4.5 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.0003497/0.4115, allocations: 103.2 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005726/0.412, allocations: 183.3 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-05/0.4121, allocations: 4 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001932/0.4123, allocations: 51.89 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.4126, allocations: 20.05 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005035/0.4131, allocations: 171.7 kB / 1.074 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.4134, allocations: 0.6887 MB / 1.075 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.279e-05/0.4134, allocations: 8 kB / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.007e-05/0.4135, allocations: 7.438 kB / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.4135, allocations: 4 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of Templates: time 0.004641/0.4181, allocations: 1.405 MB / 1.076 GB, free: 1.812 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1)