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.001499/0.001499, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001852/0.001852, allocations: 193.5 kB / 16.25 MB, free: 6.637 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.475/1.475, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.91/2.91, allocations: 472.6 MB / 0.7448 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 74.17 kB / 0.9116 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3868/0.3881, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002478/0.3907, allocations: 0.8489 MB / 1.069 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001464/0.3922, allocations: 1.155 MB / 1.07 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.602e-05/0.3922, allocations: 4 kB / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.71e-05/0.3923, allocations: 0 / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.103e-05/0.3924, allocations: 11.88 kB / 1.07 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004876/0.3929, allocations: 122.9 kB / 1.07 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.3931, allocations: 127.8 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.3932, allocations: 19.97 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.3933, allocations: 51.84 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.844e-05/0.3934, allocations: 43.88 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.3934, allocations: 12 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.379e-05/0.3935, allocations: 27.92 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.548e-05/0.3935, allocations: 19.92 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.013e-05/0.3936, allocations: 43.84 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001827/0.3938, allocations: 123.6 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.3938, allocations: 0 / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.492e-06/0.3938, allocations: 0 / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.3938, allocations: 0 / 1.07 GB, free: 8.227 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.0006926/0.3945, allocations: 429.2 kB / 1.071 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3946, allocations: 8.031 kB / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.684e-05/0.3946, allocations: 16.84 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.3947, allocations: 176.2 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.3948, allocations: 4.375 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.784e-05/0.3948, allocations: 8.375 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002631/0.3951, allocations: 78.14 kB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3951, allocations: 192 / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.3951, allocations: 11.86 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.3951, allocations: 4 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002879/0.3954, allocations: 71.92 kB / 1.071 GB, free: 7.336 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000461/0.3959, allocations: 328.7 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.3961, allocations: 58.47 kB / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.3962, allocations: 40.92 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.3963, allocations: 0 / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002863/0.3966, allocations: 95.34 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 3.647e-06/0.3966, allocations: 7.984 kB / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0005788/0.3972, allocations: 165.5 kB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.3972, allocations: 59.34 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.3973, allocations: 122 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.3974, allocations: 29.7 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.541e-05/0.3974, allocations: 100 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.3975, allocations: 19.75 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.332e-05/0.3975, allocations: 29.7 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.3976, allocations: 322.8 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.3979, allocations: 59.95 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000212/0.3981, allocations: 82.52 kB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.3984, allocations: 152.2 kB / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3985, allocations: 0 / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005028/0.399, allocations: 215.2 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/0.399, allocations: 37.69 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.399, allocations: 0 / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.399, allocations: 0 / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.3992, allocations: 15.98 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.3992, allocations: 4.062 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.3994, allocations: 43.94 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.3995, allocations: 4 kB / 1.073 GB, free: 5.211 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.0001003/0.3996, allocations: 123.5 kB / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/0.3996, allocations: 15.83 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.818e-05/0.3996, allocations: 8.375 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3996, allocations: 4 kB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3996, allocations: 0 / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3997, allocations: 0 / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001353/0.3998, allocations: 185.6 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3998, allocations: 96 / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.889e-05/0.3999, allocations: 19.91 kB / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.3999, allocations: 4 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.3999, allocations: 0 / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3999, allocations: 0 / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3999, allocations: 0 / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.4003, allocations: 152.9 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.293e-05/0.4004, allocations: 85.39 kB / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.4004, allocations: 4 kB / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.557e-05/0.4005, allocations: 15.97 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.465e-05/0.4005, allocations: 11.94 kB / 1.074 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.4006, allocations: 7.938 kB / 1.074 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.024e-05/0.4006, allocations: 98.52 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4006, allocations: 0 / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002201/0.4008, allocations: 20 kB / 1.074 GB, free: 4.379 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.0001898/0.401, allocations: 103.2 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004831/0.4015, allocations: 199.2 kB / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4015, allocations: 0 / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.4017, allocations: 47.95 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.4019, allocations: 13.77 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003808/0.4023, allocations: 182.1 kB / 1.074 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.4026, allocations: 0.69 MB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.764e-05/0.4026, allocations: 0 / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.221e-05/0.4027, allocations: 19.42 kB / 1.075 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.4027, allocations: 3.938 kB / 1.075 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of Templates: time 0.003887/0.4066, allocations: 1.45 MB / 1.076 GB, free: 1.633 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)