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.LogicalSwitch.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.LogicalSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch",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.413/1.413, allocations: 249.5 MB / 257 MB, free: 6.922 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.001113/0.001113, allocations: 179.3 kB / 316.3 MB, free: 3.238 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.65/1.65, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.0009779/0.0009778, allocations: 100.4 kB / 0.6714 GB, free: 4.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.062e-05/2.063e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1859, allocations: 106.4 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.648/0.8339, allocations: 131.7 MB / 1.014 GB, free: 5.695 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.8341, allocations: 67.59 kB / 1.014 GB, free: 5.66 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003197/0.8373, allocations: 1.146 MB / 1.015 GB, free: 4.633 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.352e-06/0.8374, allocations: 0 / 1.015 GB, free: 4.633 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.774e-06/0.8374, allocations: 4 kB / 1.015 GB, free: 4.629 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004781/0.8379, allocations: 390.7 kB / 1.015 GB, free: 4.211 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.8379, allocations: 12.88 kB / 1.016 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.188e-05/0.838, allocations: 3.906 kB / 1.016 GB, free: 4.195 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.8381, allocations: 175 kB / 1.016 GB, free: 3.984 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.8381, allocations: 0 / 1.016 GB, free: 3.984 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.8381, allocations: 4 kB / 1.016 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.463e-05/0.8382, allocations: 40.67 kB / 1.016 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.817e-05/0.8383, allocations: 56.75 kB / 1.016 GB, free: 3.898 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.8383, allocations: 0 / 1.016 GB, free: 3.898 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.8383, allocations: 0 / 1.016 GB, free: 3.898 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.8384, allocations: 7.984 kB / 1.016 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003934/0.8388, allocations: 279.2 kB / 1.016 GB, free: 3.602 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.633e-05/0.8389, allocations: 45.89 kB / 1.016 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.012e-05/0.8389, allocations: 24.09 kB / 1.016 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.8389, allocations: 6.766 kB / 1.016 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001337/0.8391, allocations: 82.42 kB / 1.016 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.8391, allocations: 0 / 1.016 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0001884/0.8393, allocations: 88.58 kB / 1.016 GB, free: 3.367 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.8393, allocations: 55.41 kB / 1.016 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.674e-05/0.8394, allocations: 115.9 kB / 1.016 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.8395, allocations: 25.7 kB / 1.016 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.68e-05/0.8395, allocations: 87.89 kB / 1.017 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.8395, allocations: 23.48 kB / 1.017 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-06/0.8396, allocations: 0 / 1.017 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.8397, allocations: 322.4 kB / 1.017 GB, free: 2.734 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.333e-05/0.8397, allocations: 19.38 kB / 1.017 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.78e-05/0.8398, allocations: 50.73 kB / 1.017 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.754e-05/0.8398, allocations: 23.25 kB / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.8398, allocations: 0 / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001281/0.84, allocations: 88.5 kB / 1.017 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.84, allocations: 11.98 kB / 1.017 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.84, allocations: 96 / 1.017 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.858e-06/0.84, allocations: 4 kB / 1.017 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.815e-05/0.8401, allocations: 11.94 kB / 1.017 GB, free: 2.543 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.8401, allocations: 0 / 1.017 GB, free: 2.543 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.8402, allocations: 23.97 kB / 1.017 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.844e-06/0.8402, allocations: 7.938 kB / 1.017 GB, free: 2.512 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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 7.052e-05/0.8403, allocations: 116.4 kB / 1.017 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001089/0.8404, allocations: 88.34 kB / 1.017 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.205e-05/0.8404, allocations: 7.906 kB / 1.017 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.23e-05/0.8405, allocations: 13.05 kB / 1.017 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.8405, allocations: 4 kB / 1.017 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.8405, allocations: 0 / 1.017 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.8405, allocations: 3.953 kB / 1.017 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.8406, allocations: 157.1 kB / 1.017 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.8406, allocations: 0.6875 kB / 1.017 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.35e-05/0.8407, allocations: 4 kB / 1.017 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.8407, allocations: 0 / 1.017 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.8407, allocations: 7.984 kB / 1.018 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.8407, allocations: 3.938 kB / 1.018 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.8407, allocations: 4 kB / 1.018 GB, free: 2.086 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001259/0.8408, allocations: 111.4 kB / 1.018 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.8409, allocations: 89 kB / 1.018 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.8409, allocations: 0 / 1.018 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.841, allocations: 23.92 kB / 1.018 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.116e-05/0.8411, allocations: 19.94 kB / 1.018 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.8411, allocations: 4 kB / 1.018 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.85e-05/0.8411, allocations: 94.33 kB / 1.018 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8411, allocations: 3.938 kB / 1.018 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001895/0.8413, allocations: 16 kB / 1.018 GB, free: 1.719 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: 10 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0004319/0.8418, allocations: 0.6504 MB / 1.018 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001129/0.8419, allocations: 54.31 kB / 1.019 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8419, allocations: 7.438 kB / 1.019 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.227e-05/0.842, allocations: 31 kB / 1.019 GB, free: 0.9922 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.8422, allocations: 22.91 kB / 1.019 GB, free: 0.9766 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003839/0.8426, allocations: 148.6 kB / 1.019 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.8428, allocations: 0.7001 MB / 1.019 GB, free: 80 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.937e-05/0.8429, allocations: 4.562 kB / 1.019 GB, free: 72 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.723e-05/0.8429, allocations: 26.05 kB / 1.019 GB, free: 56 kB / 0.6355 GB Notification: Performance of SimCode: time 2.31e-07/0.8429, allocations: 0 / 1.019 GB, free: 56 kB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.8603, allocations: 1.715 MB / 1.021 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/0.8606, allocations: 159.9 kB / 1.021 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.491/2.351, allocations: 0 / 1.021 GB, free: 14.17 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe 2>&1)