Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.723/1.723, allocations: 292.6 MB / 307.5 MB, free: 5.211 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 182.2 kB / 377.1 MB, free: 1.535 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.791/1.791, allocations: 205.4 MB / 0.6366 GB, free: 8.66 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000861/0.000861, allocations: 92.22 kB / 0.7509 GB, free: 63.08 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003345, allocations: 12 kB / 0.8749 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.264, allocations: 116.3 MB / 0.9884 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.67/0.9341, allocations: 139.4 MB / 1.125 GB, free: 35.32 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.9343, allocations: 71.53 kB / 1.125 GB, free: 35.26 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01132/0.9456, allocations: 4.5 MB / 1.129 GB, free: 32.1 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.375e-06/0.9457, allocations: 0 / 1.129 GB, free: 32.1 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.9457, allocations: 4 kB / 1.129 GB, free: 32.1 MB / 0.7292 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.0005379/0.9462, allocations: 0.4965 MB / 1.13 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.9463, allocations: 12.02 kB / 1.13 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.895e-05/0.9464, allocations: 46.67 kB / 1.13 GB, free: 31.49 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.896e-05/0.9464, allocations: 25.88 kB / 1.13 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.9466, allocations: 171.6 kB / 1.13 GB, free: 31.26 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.563e-05/0.9467, allocations: 19 kB / 1.13 GB, free: 31.25 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.134e-05/0.9467, allocations: 21.25 kB / 1.13 GB, free: 31.23 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.9469, allocations: 91.38 kB / 1.13 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.947, allocations: 1.594 kB / 1.13 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.947, allocations: 3.938 kB / 1.13 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.947, allocations: 4 kB / 1.13 GB, free: 31.14 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.9471, allocations: 47.83 kB / 1.13 GB, free: 31.1 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007524/0.9479, allocations: 0.489 MB / 1.13 GB, free: 30.66 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.9481, allocations: 65.53 kB / 1.131 GB, free: 30.59 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.387e-05/0.9481, allocations: 4.656 kB / 1.131 GB, free: 30.59 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/0.9484, allocations: 117.7 kB / 1.131 GB, free: 30.48 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.9484, allocations: 0 / 1.131 GB, free: 30.48 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14): time 0.0003575/0.9488, allocations: 165.9 kB / 1.131 GB, free: 30.33 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.9488, allocations: 59.53 kB / 1.131 GB, free: 30.26 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.9489, allocations: 143.6 kB / 1.131 GB, free: 30.12 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.624e-05/0.949, allocations: 37.7 kB / 1.131 GB, free: 30.08 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.652e-05/0.9491, allocations: 116.2 kB / 1.131 GB, free: 29.97 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.9491, allocations: 31.33 kB / 1.131 GB, free: 29.94 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-05/0.9491, allocations: 8 kB / 1.131 GB, free: 29.93 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.891e-05/0.9492, allocations: 322.3 kB / 1.131 GB, free: 29.61 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.9494, allocations: 97.95 kB / 1.132 GB, free: 29.53 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.9496, allocations: 148.4 kB / 1.132 GB, free: 29.38 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.9498, allocations: 172 kB / 1.132 GB, free: 29.2 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.9498, allocations: 0 / 1.132 GB, free: 29.2 MB / 0.7292 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005578/0.9504, allocations: 398.7 kB / 1.132 GB, free: 28.82 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.595e-05/0.9505, allocations: 98.56 kB / 1.132 GB, free: 28.71 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.9505, allocations: 1.344 kB / 1.132 GB, free: 28.71 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.9505, allocations: 4 kB / 1.132 GB, free: 28.71 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.025e-05/0.9506, allocations: 15.56 kB / 1.132 GB, free: 28.7 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.9506, allocations: 4 kB / 1.132 GB, free: 28.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004483/0.951, allocations: 119.7 kB / 1.132 GB, free: 28.6 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.142e-05/0.9511, allocations: 23.47 kB / 1.133 GB, free: 28.58 MB / 0.7292 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,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.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 initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.9512, allocations: 137.2 kB / 1.133 GB, free: 28.44 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.803e-05/0.9512, allocations: 13.16 kB / 1.133 GB, free: 28.43 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.337e-05/0.9513, allocations: 12.84 kB / 1.133 GB, free: 28.42 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.9513, allocations: 4 kB / 1.133 GB, free: 28.42 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.9513, allocations: 1.312 kB / 1.133 GB, free: 28.42 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.9514, allocations: 3.469 kB / 1.133 GB, free: 28.42 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.9515, allocations: 221.4 kB / 1.133 GB, free: 28.17 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.9515, allocations: 5.156 kB / 1.133 GB, free: 28.17 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.267e-05/0.9516, allocations: 7.375 kB / 1.133 GB, free: 28.16 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.9516, allocations: 4 kB / 1.133 GB, free: 28.16 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.9516, allocations: 4.5 kB / 1.133 GB, free: 28.16 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.9516, allocations: 3.938 kB / 1.133 GB, free: 28.15 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.9516, allocations: 0 / 1.133 GB, free: 28.15 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001933/0.9518, allocations: 165.7 kB / 1.133 GB, free: 27.99 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.236e-05/0.9519, allocations: 93.67 kB / 1.133 GB, free: 27.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.9519, allocations: 4.562 kB / 1.133 GB, free: 27.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.074e-05/0.9519, allocations: 7.938 kB / 1.133 GB, free: 27.87 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.365e-05/0.952, allocations: 10.56 kB / 1.133 GB, free: 27.86 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.952, allocations: 4.5 kB / 1.133 GB, free: 27.86 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 6.061e-05/0.9521, allocations: 118.9 kB / 1.133 GB, free: 27.75 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9521, allocations: 0 / 1.133 GB, free: 27.75 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002721/0.9524, allocations: 55.38 kB / 1.133 GB, free: 27.7 MB / 0.7292 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005505/0.9529, allocations: 0.7131 MB / 1.134 GB, free: 26.98 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004559/0.9534, allocations: 378.2 kB / 1.134 GB, free: 26.59 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.9534, allocations: 0 / 1.134 GB, free: 26.59 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 7.576e-05/0.9535, allocations: 54.03 kB / 1.134 GB, free: 26.55 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.9537, allocations: 29.91 kB / 1.134 GB, free: 26.52 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009909/0.9547, allocations: 1.436 MB / 1.136 GB, free: 25.04 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001915/0.9549, allocations: 0.7133 MB / 1.137 GB, free: 24.32 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.98e-05/0.955, allocations: 13.44 kB / 1.137 GB, free: 24.31 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.628e-05/0.9551, allocations: 39.42 kB / 1.137 GB, free: 24.28 MB / 0.7292 GB Notification: Performance of SimCode: time 8.81e-07/0.9551, allocations: 0 / 1.137 GB, free: 24.28 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01565/0.9707, allocations: 3.836 MB / 1.14 GB, free: 22.18 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000131/0.9709, allocations: 179.9 kB / 1.141 GB, free: 21.94 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/2.609, allocations: 9.312 kB / 1.141 GB, free: 21.93 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)