Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0.0/package.mo): time 2.398/2.398, allocations: 284.9 MB / 292.4 MB, free: 10.58 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.001493/0.001493, allocations: 176.8 kB / 360.6 MB, free: 7.301 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.1/2.1, allocations: 205.2 MB / 0.6191 GB, free: 12.2 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.001071/0.00107, allocations: 97.08 kB / 0.7321 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.237e-05, allocations: 8 kB / 0.8509 GB, free: 3.324 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8008/0.8009, allocations: 115.3 MB / 0.9634 GB, free: 78.53 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2356/1.037, allocations: 137.6 MB / 1.098 GB, free: 2.906 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/1.037, allocations: 78.95 kB / 1.098 GB, free: 2.832 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.022/1.059, allocations: 4.467 MB / 1.102 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.533e-06/1.059, allocations: 1.406 kB / 1.102 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.776e-06/1.059, allocations: 4 kB / 1.102 GB, free: 14.43 MB / 0.7136 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.0006433/1.06, allocations: 484.1 kB / 1.103 GB, free: 13.89 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/1.06, allocations: 12.03 kB / 1.103 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/1.06, allocations: 21.28 kB / 1.103 GB, free: 13.86 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/1.06, allocations: 179.4 kB / 1.103 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/1.06, allocations: 8 kB / 1.103 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.957e-05/1.06, allocations: 12 kB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001674/1.06, allocations: 39.98 kB / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/1.061, allocations: 75.22 kB / 1.103 GB, free: 13.51 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/1.061, allocations: 11.89 kB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/1.061, allocations: 0 / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/1.061, allocations: 7.984 kB / 1.103 GB, free: 13.49 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009628/1.062, allocations: 468.4 kB / 1.103 GB, free: 13 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002896/1.062, allocations: 66.62 kB / 1.104 GB, free: 12.92 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.731e-05/1.062, allocations: 27.28 kB / 1.104 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.416e-05/1.062, allocations: 0 / 1.104 GB, free: 12.89 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/1.062, allocations: 104.7 kB / 1.104 GB, free: 12.78 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=14): time 5.741e-06/1.062, allocations: 0 / 1.104 GB, free: 12.78 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14): time 0.0004223/1.063, allocations: 125.5 kB / 1.104 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/1.063, allocations: 55.41 kB / 1.104 GB, free: 12.59 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/1.063, allocations: 140.3 kB / 1.104 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.263e-05/1.063, allocations: 33.7 kB / 1.104 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/1.063, allocations: 108.5 kB / 1.104 GB, free: 12.3 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/1.063, allocations: 27.64 kB / 1.104 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.574e-05/1.063, allocations: 8 kB / 1.104 GB, free: 12.26 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001292/1.063, allocations: 326.8 kB / 1.104 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002827/1.064, allocations: 87.98 kB / 1.105 GB, free: 11.85 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003572/1.064, allocations: 128.8 kB / 1.105 GB, free: 11.7 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007483/1.065, allocations: 112.8 kB / 1.105 GB, free: 11.59 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/1.065, allocations: 4 kB / 1.105 GB, free: 11.59 MB / 0.7136 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001309/1.066, allocations: 301.2 kB / 1.105 GB, free: 11.29 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/1.066, allocations: 101.7 kB / 1.105 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/1.066, allocations: 0 / 1.105 GB, free: 11.17 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/1.066, allocations: 8.188 kB / 1.105 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.627e-05/1.066, allocations: 8 kB / 1.105 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/1.067, allocations: 4 kB / 1.105 GB, free: 11.15 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008751/1.067, allocations: 103.9 kB / 1.105 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.077e-05/1.067, allocations: 31.19 kB / 1.105 GB, free: 11.02 MB / 0.7136 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 () * 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.0001664/1.068, allocations: 132.7 kB / 1.105 GB, free: 10.89 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003227/1.068, allocations: 119 kB / 1.106 GB, free: 10.77 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/1.068, allocations: 7.906 kB / 1.106 GB, free: 10.76 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.941e-05/1.068, allocations: 16.73 kB / 1.106 GB, free: 10.74 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/1.068, allocations: 0 / 1.106 GB, free: 10.74 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.068, allocations: 0 / 1.106 GB, free: 10.74 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/1.068, allocations: 0 / 1.106 GB, free: 10.74 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/1.068, allocations: 190.1 kB / 1.106 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/1.068, allocations: 7.922 kB / 1.106 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.583e-05/1.069, allocations: 8 kB / 1.106 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.451e-06/1.069, allocations: 4 kB / 1.106 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/1.069, allocations: 4 kB / 1.106 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/1.069, allocations: 0 / 1.106 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.069, allocations: 0 / 1.106 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/1.069, allocations: 160.4 kB / 1.106 GB, free: 10.32 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/1.069, allocations: 81.02 kB / 1.106 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/1.069, allocations: 4 kB / 1.106 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.91e-05/1.069, allocations: 3.984 kB / 1.106 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.182e-05/1.069, allocations: 11.98 kB / 1.106 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/1.069, allocations: 8 kB / 1.106 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 8.683e-05/1.069, allocations: 109.5 kB / 1.106 GB, free: 10.09 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.11e-07/1.069, allocations: 0 / 1.106 GB, free: 10.09 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004688/1.07, allocations: 47.94 kB / 1.106 GB, free: 10.05 MB / 0.7136 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 () * 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.0007486/1.071, allocations: 0.7059 MB / 1.107 GB, free: 9.309 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0007383/1.071, allocations: 362.6 kB / 1.107 GB, free: 8.918 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.071, allocations: 0 / 1.107 GB, free: 8.918 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001254/1.071, allocations: 40 kB / 1.107 GB, free: 8.879 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/1.072, allocations: 24.34 kB / 1.107 GB, free: 8.855 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007418/1.073, allocations: 203.3 kB / 1.107 GB, free: 8.625 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/1.073, allocations: 0.7093 MB / 1.108 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 7.657e-05/1.073, allocations: 12.88 kB / 1.108 GB, free: 7.875 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.029e-05/1.073, allocations: 39.42 kB / 1.108 GB, free: 7.836 MB / 0.7136 GB Notification: Performance of SimCode: time 1.112e-06/1.073, allocations: 0 / 1.108 GB, free: 7.836 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04585/1.119, allocations: 3.314 MB / 1.111 GB, free: 4.629 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002787/1.119, allocations: 161.5 kB / 1.112 GB, free: 4.434 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.428/3.548, allocations: 0 / 1.112 GB, free: 4.434 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)