Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.45/1.45, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001633/0.001634, allocations: 171.7 kB / 326.5 MB, free: 2.262 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.055/2.055, allocations: 205.4 MB / 0.5775 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008736/0.0008736, allocations: 94.3 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003528, allocations: 12.03 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2682, allocations: 106.3 MB / 0.9002 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1771/0.4454, allocations: 131.9 MB / 1.029 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.4457, allocations: 71.95 kB / 1.029 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004214/0.4499, allocations: 1.603 MB / 1.031 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.683e-06/0.45, allocations: 0 / 1.031 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.115e-06/0.45, allocations: 4 kB / 1.031 GB, free: 10.07 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005754/0.4506, allocations: 436.5 kB / 1.031 GB, free: 9.586 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.4506, allocations: 8.219 kB / 1.031 GB, free: 9.578 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.291e-05/0.4507, allocations: 46.48 kB / 1.031 GB, free: 9.523 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.4507, allocations: 7.906 kB / 1.031 GB, free: 9.516 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.4509, allocations: 187.9 kB / 1.031 GB, free: 9.293 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.4509, allocations: 16.17 kB / 1.031 GB, free: 9.277 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.4509, allocations: 12 kB / 1.031 GB, free: 9.266 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.4511, allocations: 95.09 kB / 1.031 GB, free: 9.168 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.4512, allocations: 4 kB / 1.031 GB, free: 9.164 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.4512, allocations: 0 / 1.031 GB, free: 9.164 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.4512, allocations: 0 / 1.031 GB, free: 9.164 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001222/0.4513, allocations: 60.53 kB / 1.031 GB, free: 9.105 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005898/0.4519, allocations: 397.3 kB / 1.032 GB, free: 8.668 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000148/0.4521, allocations: 74.59 kB / 1.032 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.4521, allocations: 240 / 1.032 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.4523, allocations: 103.2 kB / 1.032 GB, free: 8.473 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.4523, allocations: 0 / 1.032 GB, free: 8.473 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14): time 0.0003023/0.4526, allocations: 155.5 kB / 1.032 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.4527, allocations: 55.41 kB / 1.032 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.4528, allocations: 138.9 kB / 1.032 GB, free: 8.102 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.4528, allocations: 37.62 kB / 1.032 GB, free: 8.059 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.14e-05/0.4529, allocations: 104 kB / 1.032 GB, free: 7.953 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.4529, allocations: 43.75 kB / 1.033 GB, free: 7.91 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-06/0.4529, allocations: 0 / 1.033 GB, free: 7.91 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.4531, allocations: 326.8 kB / 1.033 GB, free: 7.582 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.13e-05/0.4531, allocations: 23.98 kB / 1.033 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.315e-05/0.4532, allocations: 58.91 kB / 1.033 GB, free: 7.492 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.476e-05/0.4533, allocations: 28 kB / 1.033 GB, free: 7.465 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4533, allocations: 4 kB / 1.033 GB, free: 7.461 MB / 0.6823 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001746/0.4534, allocations: 122 kB / 1.033 GB, free: 7.336 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.4535, allocations: 11.95 kB / 1.033 GB, free: 7.324 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.4535, allocations: 3.938 kB / 1.033 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.4535, allocations: 0 / 1.033 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.329e-05/0.4536, allocations: 12 kB / 1.033 GB, free: 7.309 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.4536, allocations: 4 kB / 1.033 GB, free: 7.305 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.4537, allocations: 35.97 kB / 1.033 GB, free: 7.27 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.4538, allocations: 4 kB / 1.033 GB, free: 7.266 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * 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.0001013/0.4539, allocations: 125.8 kB / 1.033 GB, free: 7.133 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.692e-05/0.4539, allocations: 7.906 kB / 1.033 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.043e-05/0.4539, allocations: 24.78 kB / 1.033 GB, free: 7.105 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.4539, allocations: 0 / 1.033 GB, free: 7.105 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.454, allocations: 0 / 1.033 GB, free: 7.105 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.454, allocations: 8 kB / 1.033 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.4542, allocations: 221.4 kB / 1.033 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4542, allocations: 0 / 1.033 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.243e-05/0.4542, allocations: 8 kB / 1.033 GB, free: 6.824 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.4542, allocations: 0 / 1.033 GB, free: 6.824 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.4542, allocations: 8 kB / 1.033 GB, free: 6.816 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.4542, allocations: 3.953 kB / 1.033 GB, free: 6.812 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4543, allocations: 0 / 1.033 GB, free: 6.812 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001917/0.4545, allocations: 145.9 kB / 1.034 GB, free: 6.652 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.413e-05/0.4545, allocations: 92.86 kB / 1.034 GB, free: 6.543 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.147e-05/0.4545, allocations: 8 kB / 1.034 GB, free: 6.535 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.4546, allocations: 19.97 kB / 1.034 GB, free: 6.516 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.807e-05/0.4547, allocations: 19.94 kB / 1.034 GB, free: 6.496 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.4547, allocations: 11.98 kB / 1.034 GB, free: 6.484 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 7.083e-05/0.4548, allocations: 119 kB / 1.034 GB, free: 6.371 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4548, allocations: 4 kB / 1.034 GB, free: 6.367 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002088/0.455, allocations: 24 kB / 1.034 GB, free: 6.344 MB / 0.6823 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 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,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.0004796/0.4555, allocations: 0.685 MB / 1.035 GB, free: 5.629 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001634/0.4557, allocations: 79.91 kB / 1.035 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4557, allocations: 12.12 kB / 1.035 GB, free: 5.539 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 8.72e-05/0.4558, allocations: 47.92 kB / 1.035 GB, free: 5.492 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.456, allocations: 30.2 kB / 1.035 GB, free: 5.465 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.4572, allocations: 1.193 MB / 1.036 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.4575, allocations: 0.7087 MB / 1.037 GB, free: 3.48 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.726e-05/0.4575, allocations: 13.08 kB / 1.037 GB, free: 3.469 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.351e-05/0.4576, allocations: 35.42 kB / 1.037 GB, free: 3.434 MB / 0.6823 GB Notification: Performance of SimCode: time 2.31e-07/0.4576, allocations: 0 / 1.037 GB, free: 3.434 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01384/0.4714, allocations: 2.473 MB / 1.039 GB, free: 1.133 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001674/0.4716, allocations: 203.2 kB / 1.039 GB, free: 0.8867 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.527/1.998, allocations: 0 / 1.039 GB, free: 0.8867 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)