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.385/1.385, allocations: 249.5 MB / 257 MB, free: 6.887 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000961/0.000961, allocations: 180.8 kB / 316.3 MB, free: 3.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.451/1.451, allocations: 205.3 MB / 0.5671 GB, free: 15.85 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.0009752/0.0009751, allocations: 92.17 kB / 0.6714 GB, free: 4.961 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.394e-05/2.396e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2108/0.2109, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7782/0.9891, allocations: 132.1 MB / 1.014 GB, free: 5.648 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.9894, allocations: 75.89 kB / 1.014 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004286/0.9937, allocations: 1.593 MB / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.178e-06/0.9938, allocations: 0 / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.068e-05/0.9938, allocations: 7.938 kB / 1.016 GB, free: 4.195 MB / 0.6355 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.0005655/0.9944, allocations: 407.4 kB / 1.016 GB, free: 3.75 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.9944, allocations: 12.03 kB / 1.016 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.35e-05/0.9945, allocations: 15.81 kB / 1.016 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.9946, allocations: 184.3 kB / 1.017 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.9947, allocations: 4 kB / 1.017 GB, free: 3.504 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/0.9947, allocations: 4 kB / 1.017 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001353/0.9948, allocations: 59.23 kB / 1.017 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001381/0.995, allocations: 79.73 kB / 1.017 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.995, allocations: 0 / 1.017 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.995, allocations: 0 / 1.017 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.995, allocations: 4 kB / 1.017 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005832/0.9956, allocations: 350.2 kB / 1.017 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.9958, allocations: 73.41 kB / 1.017 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.127e-05/0.9958, allocations: 28.52 kB / 1.017 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.9959, allocations: 3.938 kB / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.996, allocations: 106.8 kB / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.9961, allocations: 0 / 1.017 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0002311/0.9963, allocations: 104.4 kB / 1.017 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.9963, allocations: 55.41 kB / 1.017 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.9965, allocations: 138.1 kB / 1.018 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.9965, allocations: 25.7 kB / 1.018 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.784e-05/0.9965, allocations: 99.42 kB / 1.018 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.9966, allocations: 31.34 kB / 1.018 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-06/0.9966, allocations: 7.938 kB / 1.018 GB, free: 2.414 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.9967, allocations: 318.4 kB / 1.018 GB, free: 2.098 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.391e-05/0.9968, allocations: 23.81 kB / 1.018 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.604e-05/0.9968, allocations: 55.06 kB / 1.018 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.095e-05/0.9969, allocations: 27.36 kB / 1.018 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.9969, allocations: 4 kB / 1.018 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001695/0.9971, allocations: 111.3 kB / 1.018 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.9971, allocations: 4 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.9971, allocations: 4.094 kB / 1.018 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.9971, allocations: 7.953 kB / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.9973, allocations: 15.94 kB / 1.018 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.9973, allocations: 3.938 kB / 1.018 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.9974, allocations: 31.81 kB / 1.018 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.9974, allocations: 7.938 kB / 1.018 GB, free: 1.84 MB / 0.6355 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 () * 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 8.697e-05/0.9975, allocations: 109 kB / 1.018 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001468/0.9977, allocations: 105 kB / 1.018 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.017e-05/0.9977, allocations: 19.8 kB / 1.018 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.239e-05/0.9978, allocations: 12.5 kB / 1.018 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.9978, allocations: 4 kB / 1.018 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.9978, allocations: 0 / 1.018 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.9978, allocations: 0 / 1.018 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.998, allocations: 181.4 kB / 1.019 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.998, allocations: 0 / 1.019 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.99e-05/0.998, allocations: 15.61 kB / 1.019 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.998, allocations: 4 kB / 1.019 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.9981, allocations: 4 kB / 1.019 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.9981, allocations: 8.672 kB / 1.019 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.9981, allocations: 0 / 1.019 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001773/0.9983, allocations: 131.7 kB / 1.019 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.931e-05/0.9983, allocations: 85.02 kB / 1.019 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.9984, allocations: 3.984 kB / 1.019 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.9985, allocations: 24.8 kB / 1.019 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.931e-05/0.9986, allocations: 23.8 kB / 1.019 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.9986, allocations: 4 kB / 1.019 GB, free: 1.098 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.577e-05/0.9986, allocations: 100.2 kB / 1.019 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9986, allocations: 0 / 1.019 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002088/0.9989, allocations: 20 kB / 1.019 GB, free: 0.9883 MB / 0.6355 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 () * 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.0005084/0.9994, allocations: 0.6791 MB / 1.02 GB, free: 316 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001582/0.9995, allocations: 74.48 kB / 1.02 GB, free: 260 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.9996, allocations: 0 / 1.02 GB, free: 260 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.362e-05/0.9996, allocations: 42.88 kB / 1.02 GB, free: 228 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002324/0.9999, allocations: 28.06 kB / 1.02 GB, free: 204 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004914/1, allocations: 189.8 kB / 1.02 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/1.001, allocations: 0.7119 MB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.975e-05/1.001, allocations: 8.766 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.414e-05/1.001, allocations: 42.42 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of SimCode: time 2.8e-07/1.001, allocations: 0 / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/1.021, allocations: 2.052 MB / 1.023 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/1.021, allocations: 168.3 kB / 1.023 GB, free: 13 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.572/2.593, allocations: 0 / 1.023 GB, free: 13 MB / 0.6511 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)