Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 98.53 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.373/2.373, allocations: 390.3 MB / 0.6653 GB, free: 3 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003515, allocations: 16 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7406/0.741, allocations: 142.3 MB / 0.9536 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.0008942/0.7419, allocations: 0.5151 MB / 0.9541 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.7432, allocations: 1.218 MB / 0.9553 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.795e-05/0.7433, allocations: 0.625 kB / 0.9553 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.951e-05/0.7433, allocations: 11.86 kB / 0.9553 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.11e-05/0.7434, allocations: 24.31 kB / 0.9553 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007364/0.7441, allocations: 282.2 kB / 0.9556 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.7443, allocations: 145.8 kB / 0.9557 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.7444, allocations: 40.44 kB / 0.9558 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.7445, allocations: 96.31 kB / 0.9559 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.7447, allocations: 80.72 kB / 0.9559 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.909e-05/0.7447, allocations: 14.03 kB / 0.956 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.725e-05/0.7448, allocations: 27.61 kB / 0.956 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.141e-05/0.7448, allocations: 17.16 kB / 0.956 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.148e-05/0.7449, allocations: 56.17 kB / 0.9561 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.7451, allocations: 174.3 kB / 0.9562 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.7451, allocations: 4 kB / 0.9562 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.944e-06/0.7451, allocations: 0 / 0.9562 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.7451, allocations: 0 / 0.9562 GB, free: 6.066 MB / 0.7169 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.000445/0.7455, allocations: 489 kB / 0.9567 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.7456, allocations: 9.312 kB / 0.9567 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.263e-05/0.7456, allocations: 41.45 kB / 0.9567 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.016e-05/0.7457, allocations: 24.94 kB / 0.9568 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.752e-05/0.7458, allocations: 186.6 kB / 0.9569 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.759e-05/0.7458, allocations: 8.688 kB / 0.957 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.428e-05/0.7459, allocations: 20.81 kB / 0.957 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.746, allocations: 92.86 kB / 0.9571 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.746, allocations: 0 / 0.9571 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.746, allocations: 9.234 kB / 0.9571 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.7461, allocations: 2.625 kB / 0.9571 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.23e-05/0.7462, allocations: 43.77 kB / 0.9571 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005753/0.7467, allocations: 0.4925 MB / 0.9576 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.747, allocations: 66.81 kB / 0.9577 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.747, allocations: 1.531 kB / 0.9577 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001716/0.7471, allocations: 113.9 kB / 0.9578 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.7472, allocations: 4 kB / 0.9578 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003244/0.7475, allocations: 173.7 kB / 0.9579 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.7475, allocations: 55 kB / 0.958 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.7476, allocations: 167.9 kB / 0.9581 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.7477, allocations: 35.58 kB / 0.9582 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.752e-05/0.7478, allocations: 109 kB / 0.9583 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.7478, allocations: 24.73 kB / 0.9583 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/0.7478, allocations: 9.375 kB / 0.9583 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.806e-05/0.7479, allocations: 321.3 kB / 0.9586 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.7481, allocations: 101.7 kB / 0.9587 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.7483, allocations: 144.4 kB / 0.9589 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001952/0.7485, allocations: 179.9 kB / 0.959 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.7485, allocations: 0 / 0.959 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005436/0.749, allocations: 403 kB / 0.9594 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.345e-05/0.7491, allocations: 95.75 kB / 0.9595 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.7491, allocations: 1.438 kB / 0.9595 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.7491, allocations: 3.062 kB / 0.9595 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.534e-05/0.7492, allocations: 17.19 kB / 0.9595 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.7492, allocations: 7.047 kB / 0.9595 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005518/0.7498, allocations: 116.3 kB / 0.9596 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.412e-05/0.7498, allocations: 25.73 kB / 0.9597 GB, free: 3.082 MB / 0.7169 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.0001088/0.7499, allocations: 131.6 kB / 0.9598 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.98e-05/0.75, allocations: 17.36 kB / 0.9598 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.472e-05/0.75, allocations: 15.59 kB / 0.9598 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.75, allocations: 2.75 kB / 0.9598 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.75, allocations: 0 / 0.9598 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.75, allocations: 3.938 kB / 0.9598 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.7502, allocations: 228.9 kB / 0.9601 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.7502, allocations: 0 / 0.9601 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.307e-05/0.7502, allocations: 8.25 kB / 0.9601 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.7503, allocations: 3.953 kB / 0.9601 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.7503, allocations: 6.75 kB / 0.9601 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.7503, allocations: 3.984 kB / 0.9601 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.7503, allocations: 4 kB / 0.9601 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001984/0.7505, allocations: 157.6 kB / 0.9602 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.41e-05/0.7505, allocations: 95.59 kB / 0.9603 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.7506, allocations: 5.328 kB / 0.9603 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.478e-05/0.7506, allocations: 5.375 kB / 0.9603 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.001e-05/0.7506, allocations: 13.42 kB / 0.9603 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.7507, allocations: 4.125 kB / 0.9603 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.712e-05/0.7507, allocations: 127 kB / 0.9605 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7507, allocations: 0 / 0.9605 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002693/0.751, allocations: 51.98 kB / 0.9605 GB, free: 2.324 MB / 0.7169 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.0004516/0.7515, allocations: 0.6962 MB / 0.9612 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004612/0.7519, allocations: 391.1 kB / 0.9616 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7519, allocations: 0 / 0.9616 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.067e-05/0.752, allocations: 50.67 kB / 0.9616 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/0.7523, allocations: 27.91 kB / 0.9616 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008826/0.7532, allocations: 1.425 MB / 0.963 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003244/0.7535, allocations: 0.7151 MB / 0.9637 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.504e-05/0.7536, allocations: 12.89 kB / 0.9637 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.248e-05/0.7536, allocations: 42.42 kB / 0.9638 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of SimCode: time 2.11e-07/0.7536, allocations: 0 / 0.9638 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01514/0.7688, allocations: 3.827 MB / 0.9675 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001864/0.769, allocations: 194.2 kB / 0.9677 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/2.523, allocations: 1.969 kB / 0.9677 GB, free: 13.1 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat does not exist to compare? outputFormat=mat