Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.001111, allocations: 91.84 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.008974/0.008974, allocations: 173.9 kB / 16.27 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.62/1.62, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.143/3.143, allocations: 473.4 MB / 0.7469 GB, free: 6.066 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004405/0.0004405, allocations: 9.656 kB / 0.9158 GB, free: 33.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4422/0.4427, allocations: 162.2 MB / 1.074 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001238/0.444, allocations: 0.5389 MB / 1.075 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002142/0.4461, allocations: 1.315 MB / 1.076 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.4463, allocations: 4 kB / 1.076 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.117e-05/0.4463, allocations: 11.92 kB / 1.076 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.4465, allocations: 15.8 kB / 1.076 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.4478, allocations: 297.7 kB / 1.076 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004889/0.4483, allocations: 259.5 kB / 1.077 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.4486, allocations: 37.42 kB / 1.077 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003045/0.4489, allocations: 99.78 kB / 1.077 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002339/0.4491, allocations: 75.72 kB / 1.077 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.526e-05/0.4492, allocations: 16 kB / 1.077 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001971/0.4494, allocations: 35.91 kB / 1.077 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.162e-05/0.4495, allocations: 23.86 kB / 1.077 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000228/0.4497, allocations: 113.4 kB / 1.077 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004722/0.4502, allocations: 243.5 kB / 1.077 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.4502, allocations: 0 / 1.077 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.557e-06/0.4502, allocations: 0 / 1.077 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.097e-05/0.4503, allocations: 0 / 1.077 GB, free: 4.422 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0009328/0.4512, allocations: 488.2 kB / 1.078 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 7.087e-05/0.4513, allocations: 8.031 kB / 1.078 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.4515, allocations: 20.75 kB / 1.078 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.4517, allocations: 185.3 kB / 1.078 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.208e-05/0.4518, allocations: 24.3 kB / 1.078 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.013e-05/0.4519, allocations: 23.94 kB / 1.078 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.4522, allocations: 85.66 kB / 1.078 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.4522, allocations: 0 / 1.078 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.4522, allocations: 4 kB / 1.078 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.4523, allocations: 0 / 1.078 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001245/0.4524, allocations: 51.97 kB / 1.078 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.4535, allocations: 0.4923 MB / 1.078 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.4538, allocations: 66.5 kB / 1.079 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.388e-05/0.4539, allocations: 32.97 kB / 1.079 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.4539, allocations: 0 / 1.079 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000285/0.4542, allocations: 127.2 kB / 1.079 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.4542, allocations: 0 / 1.079 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0004149/0.4546, allocations: 165.5 kB / 1.079 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.4547, allocations: 59.41 kB / 1.079 GB, free: 2.414 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001762/0.4549, allocations: 164.5 kB / 1.079 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.629e-05/0.455, allocations: 37.7 kB / 1.079 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.4551, allocations: 108 kB / 1.079 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.4551, allocations: 31.64 kB / 1.079 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.099e-05/0.4552, allocations: 41.69 kB / 1.079 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4554, allocations: 326.8 kB / 1.08 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002187/0.4556, allocations: 87.95 kB / 1.08 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.4558, allocations: 148.7 kB / 1.08 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000327/0.4562, allocations: 256.3 kB / 1.08 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.4562, allocations: 0 / 1.08 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006804/0.4569, allocations: 398.4 kB / 1.08 GB, free: 0.7344 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.000106/0.457, allocations: 105 kB / 1.081 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.457, allocations: 4 kB / 1.081 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.457, allocations: 0 / 1.081 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.895e-05/0.4571, allocations: 19.92 kB / 1.081 GB, free: 0.5898 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.4571, allocations: 0 / 1.081 GB, free: 0.5898 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006097/0.4577, allocations: 119.9 kB / 1.081 GB, free: 484 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.134e-05/0.4578, allocations: 23.98 kB / 1.081 GB, free: 460 kB / 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: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.0001637/0.458, allocations: 129.8 kB / 1.081 GB, free: 320 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.202e-05/0.458, allocations: 23.77 kB / 1.081 GB, free: 296 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.34e-05/0.4581, allocations: 12.84 kB / 1.081 GB, free: 280 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.4581, allocations: 0 / 1.081 GB, free: 280 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.4581, allocations: 0 / 1.081 GB, free: 280 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4581, allocations: 7.984 kB / 1.081 GB, free: 272 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.4584, allocations: 221.5 kB / 1.081 GB, free: 0 / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4584, allocations: 0 / 1.081 GB, free: 0 / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.992e-05/0.4584, allocations: 8.047 kB / 1.081 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.4585, allocations: 3.938 kB / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.4585, allocations: 7.938 kB / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.4585, allocations: 0 / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4585, allocations: 0 / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002396/0.4587, allocations: 159.7 kB / 1.081 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.987e-05/0.4588, allocations: 96.86 kB / 1.081 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.4588, allocations: 4 kB / 1.081 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.378e-05/0.4589, allocations: 0 / 1.081 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/0.4589, allocations: 19.92 kB / 1.081 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.459, allocations: 7.984 kB / 1.081 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.26e-05/0.4591, allocations: 115.6 kB / 1.081 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4591, allocations: 0 / 1.081 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003209/0.4594, allocations: 55.92 kB / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0002135/0.4596, allocations: 107.8 kB / 1.082 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000573/0.4602, allocations: 386 kB / 1.082 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4602, allocations: 3.938 kB / 1.082 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.4603, allocations: 51.97 kB / 1.082 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.4607, allocations: 24 kB / 1.082 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007094/0.4614, allocations: 284 kB / 1.082 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004666/0.4619, allocations: 0.7165 MB / 1.083 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.864e-05/0.462, allocations: 12.64 kB / 1.083 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.164e-05/0.462, allocations: 11.44 kB / 1.083 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of SimCode: time 5.51e-07/0.462, allocations: 4 kB / 1.083 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of Templates: time 0.008531/0.4705, allocations: 2.656 MB / 1.086 GB, free: 11.2 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1)