Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.001684/0.001684, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002243/0.002243, allocations: 216.8 kB / 23.04 MB, free: 5.078 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.545/1.545, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.551/3.551, allocations: 0.5002 GB / 0.8061 GB, free: 26.82 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.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_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.002038/0.002038, allocations: 60.8 kB / 1.171 GB, free: 19.78 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3947/0.3968, allocations: 179 MB / 1.345 GB, free: 464 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002262/0.399, allocations: 0.6922 MB / 1.346 GB, free: 15.76 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002093/0.4011, allocations: 1.303 MB / 1.347 GB, free: 14.44 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.898e-05/0.4012, allocations: 3.938 kB / 1.347 GB, free: 14.44 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.693e-05/0.4012, allocations: 7.875 kB / 1.347 GB, free: 14.43 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.4013, allocations: 19.84 kB / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009745/0.4023, allocations: 315.8 kB / 1.348 GB, free: 14.11 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004113/0.4027, allocations: 251.6 kB / 1.348 GB, free: 13.86 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.4028, allocations: 16.16 kB / 1.348 GB, free: 13.84 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002081/0.403, allocations: 99.88 kB / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.4033, allocations: 95.73 kB / 1.348 GB, free: 13.65 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.158e-05/0.4033, allocations: 24 kB / 1.348 GB, free: 13.63 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.4035, allocations: 39.98 kB / 1.348 GB, free: 13.59 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.926e-05/0.4035, allocations: 11.94 kB / 1.348 GB, free: 13.58 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.4036, allocations: 91.67 kB / 1.348 GB, free: 13.49 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003374/0.404, allocations: 219.6 kB / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.404, allocations: 7.984 kB / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.503e-06/0.404, allocations: 0 / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.404, allocations: 0 / 1.348 GB, free: 13.27 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006597/0.4047, allocations: 419.1 kB / 1.349 GB, free: 12.81 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.4047, allocations: 12.03 kB / 1.349 GB, free: 12.8 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.756e-05/0.4047, allocations: 4.188 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.693e-05/0.4047, allocations: 30.75 kB / 1.349 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.715e-05/0.4048, allocations: 16.89 kB / 1.349 GB, free: 12.74 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.4049, allocations: 125.1 kB / 1.349 GB, free: 12.59 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.481e-05/0.4049, allocations: 16.38 kB / 1.349 GB, free: 12.58 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.074e-05/0.405, allocations: 12.38 kB / 1.349 GB, free: 12.57 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.4051, allocations: 61.8 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.4051, allocations: 0 / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.4051, allocations: 0 / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.4051, allocations: 0 / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.525e-05/0.4052, allocations: 23.92 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005738/0.4058, allocations: 383.6 kB / 1.349 GB, free: 12.06 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 6.273e-05/0.4058, allocations: 30.58 kB / 1.35 GB, free: 12.02 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.059e-05/0.4059, allocations: 24.94 kB / 1.35 GB, free: 11.99 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.4059, allocations: 0 / 1.35 GB, free: 11.99 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002475/0.4061, allocations: 103.2 kB / 1.35 GB, free: 11.88 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.022e-06/0.4061, allocations: 0 / 1.35 GB, free: 11.88 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0003073/0.4064, allocations: 137.5 kB / 1.35 GB, free: 11.74 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.4065, allocations: 59.41 kB / 1.35 GB, free: 11.67 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.4066, allocations: 133.8 kB / 1.35 GB, free: 11.53 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 6.053e-05/0.4067, allocations: 33.7 kB / 1.35 GB, free: 11.49 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.409e-05/0.4067, allocations: 96.58 kB / 1.35 GB, free: 11.39 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.637e-05/0.4068, allocations: 23.84 kB / 1.35 GB, free: 11.37 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.4069, allocations: 61.67 kB / 1.35 GB, free: 11.3 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001645/0.4071, allocations: 330.8 kB / 1.35 GB, free: 10.97 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.4072, allocations: 95.83 kB / 1.351 GB, free: 10.88 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.4075, allocations: 141.9 kB / 1.351 GB, free: 10.71 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/0.4078, allocations: 233.9 kB / 1.351 GB, free: 10.45 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.4078, allocations: 4 kB / 1.351 GB, free: 10.45 MB / 1.045 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007069/0.4085, allocations: 378.4 kB / 1.351 GB, free: 10.05 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 8.522e-05/0.4086, allocations: 101.1 kB / 1.351 GB, free: 9.934 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.4086, allocations: 8 kB / 1.351 GB, free: 9.926 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.4086, allocations: 192 / 1.351 GB, free: 9.926 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.62e-05/0.4086, allocations: 11.98 kB / 1.351 GB, free: 9.914 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.699e-06/0.4087, allocations: 4 kB / 1.351 GB, free: 9.91 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005335/0.4092, allocations: 83.8 kB / 1.351 GB, free: 9.828 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.145e-05/0.4092, allocations: 15.98 kB / 1.352 GB, free: 9.812 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: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.0001286/0.4094, allocations: 140.6 kB / 1.352 GB, free: 9.668 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.668e-05/0.4094, allocations: 7.953 kB / 1.352 GB, free: 9.66 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.312e-05/0.4094, allocations: 12.36 kB / 1.352 GB, free: 9.648 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.4094, allocations: 7.984 kB / 1.352 GB, free: 9.641 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4094, allocations: 0 / 1.352 GB, free: 9.641 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4094, allocations: 0 / 1.352 GB, free: 9.641 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.4096, allocations: 156.7 kB / 1.352 GB, free: 9.445 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4096, allocations: 0 / 1.352 GB, free: 9.445 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.389e-05/0.4096, allocations: 7.984 kB / 1.352 GB, free: 9.438 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.4096, allocations: 4 kB / 1.352 GB, free: 9.434 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.4096, allocations: 0 / 1.352 GB, free: 9.434 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4096, allocations: 0 / 1.352 GB, free: 9.434 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.4096, allocations: 0 / 1.352 GB, free: 9.434 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.4098, allocations: 144.9 kB / 1.352 GB, free: 9.273 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.693e-05/0.4099, allocations: 15.88 kB / 1.352 GB, free: 9.258 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.4099, allocations: 0 / 1.352 GB, free: 9.258 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.814e-05/0.4099, allocations: 8 kB / 1.352 GB, free: 9.25 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.982e-05/0.4099, allocations: 11.92 kB / 1.352 GB, free: 9.238 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.4099, allocations: 4 kB / 1.352 GB, free: 9.234 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.626e-05/0.41, allocations: 101 kB / 1.352 GB, free: 9.137 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.2e-07/0.41, allocations: 0 / 1.352 GB, free: 9.137 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002778/0.4103, allocations: 55.88 kB / 1.352 GB, free: 9.082 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked 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 (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.0005761/0.4109, allocations: 0.6766 MB / 1.353 GB, free: 8.379 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004763/0.4113, allocations: 326 kB / 1.353 GB, free: 8.023 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4114, allocations: 0 / 1.353 GB, free: 8.023 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 8.984e-05/0.4114, allocations: 39.91 kB / 1.353 GB, free: 7.984 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.4118, allocations: 15.98 kB / 1.353 GB, free: 7.969 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003769/0.4156, allocations: 2.063 MB / 1.355 GB, free: 5.762 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.4159, allocations: 0.6924 MB / 1.356 GB, free: 5.043 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.11e-05/0.416, allocations: 12.42 kB / 1.356 GB, free: 5.031 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.1e-05/0.416, allocations: 23.44 kB / 1.356 GB, free: 5.008 MB / 1.045 GB Notification: Performance of SimCode: time 8.11e-07/0.416, allocations: 0 / 1.356 GB, free: 5.008 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.4428, allocations: 4.02 MB / 1.36 GB, free: 1.16 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.66, allocations: 1.891 kB / 1.36 GB, free: 1.16 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.853154937038198] Failed to read output from testmodel.py, exit status != 0: 11.820199829991907 11.836515687 11.429269345 Calling exit ...