Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001998/0.001998, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002975/0.002975, allocations: 217.8 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.531/1.531, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.326/3.326, allocations: 0.5003 GB / 0.8062 GB, free: 28.25 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 66.12 kB / 1.171 GB, free: 19.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3635, allocations: 179 MB / 1.345 GB, free: 15.88 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002963/0.3664, allocations: 0.8041 MB / 1.346 GB, free: 15.07 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002061/0.3685, allocations: 1.303 MB / 1.347 GB, free: 13.76 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.851e-05/0.3686, allocations: 0 / 1.347 GB, free: 13.76 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.916e-05/0.3686, allocations: 15.86 kB / 1.347 GB, free: 13.74 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001138/0.3687, allocations: 19.8 kB / 1.347 GB, free: 13.72 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009834/0.3697, allocations: 326.5 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005456/0.3703, allocations: 291.5 kB / 1.348 GB, free: 13.13 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.3704, allocations: 33.61 kB / 1.348 GB, free: 13.09 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002494/0.3707, allocations: 115.8 kB / 1.348 GB, free: 12.98 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002573/0.3709, allocations: 111.6 kB / 1.348 GB, free: 12.87 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 9.727e-05/0.371, allocations: 28 kB / 1.348 GB, free: 12.84 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.3712, allocations: 47.92 kB / 1.348 GB, free: 12.8 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.976e-05/0.3712, allocations: 23.92 kB / 1.348 GB, free: 12.77 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.3713, allocations: 91.73 kB / 1.348 GB, free: 12.68 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004363/0.3718, allocations: 267.4 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3718, allocations: 0 / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.794e-06/0.3718, allocations: 3.938 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.3718, allocations: 0 / 1.349 GB, free: 12.42 MB / 1.045 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.001014/0.3728, allocations: 462.8 kB / 1.349 GB, free: 11.92 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.3729, allocations: 12.03 kB / 1.349 GB, free: 11.91 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.637e-05/0.3729, allocations: 192 / 1.349 GB, free: 11.91 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.386e-05/0.3729, allocations: 46.73 kB / 1.349 GB, free: 11.85 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.889e-05/0.373, allocations: 16.89 kB / 1.349 GB, free: 11.84 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.3732, allocations: 142.6 kB / 1.349 GB, free: 11.67 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/0.3732, allocations: 15.98 kB / 1.349 GB, free: 11.66 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.405e-05/0.3733, allocations: 16 kB / 1.349 GB, free: 11.64 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.3736, allocations: 90.86 kB / 1.349 GB, free: 11.55 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.3736, allocations: 0 / 1.349 GB, free: 11.55 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.3737, allocations: 4 kB / 1.349 GB, free: 11.54 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.3737, allocations: 4 kB / 1.349 GB, free: 11.54 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001202/0.3738, allocations: 51.91 kB / 1.349 GB, free: 11.49 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008041/0.3746, allocations: 415.6 kB / 1.35 GB, free: 11.04 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.3749, allocations: 66.53 kB / 1.35 GB, free: 10.96 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.054e-05/0.3749, allocations: 28.98 kB / 1.35 GB, free: 10.93 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.817e-05/0.3749, allocations: 7.938 kB / 1.35 GB, free: 10.93 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003022/0.3752, allocations: 115.3 kB / 1.35 GB, free: 10.8 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.3752, allocations: 0 / 1.35 GB, free: 10.8 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0004643/0.3757, allocations: 169.6 kB / 1.35 GB, free: 10.63 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.3758, allocations: 59.41 kB / 1.35 GB, free: 10.56 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001888/0.376, allocations: 166.1 kB / 1.35 GB, free: 10.38 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.484e-05/0.376, allocations: 33.7 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.3761, allocations: 108.1 kB / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.368e-05/0.3761, allocations: 27.8 kB / 1.351 GB, free: 10.21 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.3763, allocations: 77.67 kB / 1.351 GB, free: 10.12 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.3764, allocations: 326.8 kB / 1.351 GB, free: 9.797 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.3767, allocations: 185 kB / 1.351 GB, free: 9.598 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003227/0.3771, allocations: 240 kB / 1.351 GB, free: 9.324 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/0.3774, allocations: 256.9 kB / 1.352 GB, free: 9.035 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.3774, allocations: 0 / 1.352 GB, free: 9.035 MB / 1.045 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008187/0.3782, allocations: 495.5 kB / 1.352 GB, free: 8.508 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 9.694e-05/0.3783, allocations: 102.8 kB / 1.352 GB, free: 8.391 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3783, allocations: 4 kB / 1.352 GB, free: 8.387 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.3783, allocations: 7.984 kB / 1.352 GB, free: 8.379 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.39e-05/0.3784, allocations: 8 kB / 1.352 GB, free: 8.371 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.3784, allocations: 4 kB / 1.352 GB, free: 8.367 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004876/0.3789, allocations: 87.75 kB / 1.352 GB, free: 8.281 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.844e-05/0.3789, allocations: 23.98 kB / 1.352 GB, free: 8.258 MB / 1.045 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,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000151/0.3791, allocations: 137.7 kB / 1.352 GB, free: 8.113 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.3791, allocations: 23.83 kB / 1.353 GB, free: 8.09 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.678e-05/0.3792, allocations: 8.781 kB / 1.353 GB, free: 8.074 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3792, allocations: 4 kB / 1.353 GB, free: 8.07 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3792, allocations: 0 / 1.353 GB, free: 8.07 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3792, allocations: 0 / 1.353 GB, free: 8.07 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.3794, allocations: 188.6 kB / 1.353 GB, free: 7.844 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3794, allocations: 0 / 1.353 GB, free: 7.844 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.553e-05/0.3795, allocations: 12 kB / 1.353 GB, free: 7.832 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.3795, allocations: 7.922 kB / 1.353 GB, free: 7.824 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.3795, allocations: 0 / 1.353 GB, free: 7.824 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.3795, allocations: 4 kB / 1.353 GB, free: 7.82 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3795, allocations: 0 / 1.353 GB, free: 7.82 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002805/0.3798, allocations: 162 kB / 1.353 GB, free: 7.645 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.989e-05/0.3798, allocations: 15.89 kB / 1.353 GB, free: 7.629 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.3798, allocations: 4 kB / 1.353 GB, free: 7.625 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.718e-05/0.3799, allocations: 8 kB / 1.353 GB, free: 7.617 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.3799, allocations: 7.984 kB / 1.353 GB, free: 7.609 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.148e-05/0.38, allocations: 11.98 kB / 1.353 GB, free: 7.598 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.113e-05/0.3801, allocations: 112.1 kB / 1.353 GB, free: 7.488 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3801, allocations: 3.938 kB / 1.353 GB, free: 7.484 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002837/0.3804, allocations: 55.92 kB / 1.353 GB, free: 7.43 MB / 1.045 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006268/0.381, allocations: 0.712 MB / 1.354 GB, free: 6.691 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005864/0.3816, allocations: 439.1 kB / 1.354 GB, free: 6.207 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3816, allocations: 0 / 1.354 GB, free: 6.207 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.3817, allocations: 44.36 kB / 1.354 GB, free: 6.164 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/0.382, allocations: 23.98 kB / 1.354 GB, free: 6.141 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003832/0.3858, allocations: 2.63 MB / 1.357 GB, free: 3.297 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001017/0.3859, allocations: 98.66 kB / 1.357 GB, free: 3.184 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 5.431e-05/0.386, allocations: 16.58 kB / 1.357 GB, free: 3.168 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.48e-05/0.386, allocations: 39.42 kB / 1.357 GB, free: 3.129 MB / 1.045 GB Notification: Performance of SimCode: time 6.41e-07/0.386, allocations: 0 / 1.357 GB, free: 3.129 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/0.413, allocations: 4.685 MB / 1.362 GB, free: 14.64 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.09, allocations: 14.52 kB / 1.362 GB, free: 14.63 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 19.017920966027305] Failed to read output from testmodel.py, exit status != 0: 12.248321832041256 12.265345489 11.890149363 Calling exit ...