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.001945/0.001945, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002225/0.002225, allocations: 220.3 kB / 23.03 MB, free: 4.941 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.546/1.546, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.311/3.311, allocations: 0.5003 GB / 0.8062 GB, free: 28.32 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.001977/0.001977, allocations: 66.86 kB / 1.171 GB, free: 19.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3767, allocations: 179 MB / 1.345 GB, free: 15.96 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002048/0.3788, allocations: 0.683 MB / 1.346 GB, free: 15.27 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001715/0.3805, allocations: 1.28 MB / 1.347 GB, free: 13.98 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.377e-05/0.3806, allocations: 0 / 1.347 GB, free: 13.98 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.647e-05/0.3806, allocations: 11.94 kB / 1.347 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.125e-05/0.3807, allocations: 19.84 kB / 1.347 GB, free: 13.95 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008108/0.3815, allocations: 304.8 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003225/0.3818, allocations: 255.5 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.3819, allocations: 20.16 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.3821, allocations: 95.88 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.3823, allocations: 95.69 kB / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.545e-05/0.3823, allocations: 24 kB / 1.348 GB, free: 13.18 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.502e-05/0.3824, allocations: 43.97 kB / 1.348 GB, free: 13.13 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.079e-05/0.3824, allocations: 15.92 kB / 1.348 GB, free: 13.12 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.3825, allocations: 75.88 kB / 1.348 GB, free: 13.04 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003011/0.3828, allocations: 227.6 kB / 1.348 GB, free: 12.82 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3828, allocations: 0 / 1.348 GB, free: 12.82 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.522e-06/0.3828, allocations: 3.938 kB / 1.348 GB, free: 12.82 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.441e-06/0.3829, allocations: 0 / 1.348 GB, free: 12.82 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.0005966/0.3835, allocations: 419.1 kB / 1.349 GB, free: 12.36 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.3835, allocations: 12.03 kB / 1.349 GB, free: 12.35 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.297e-05/0.3835, allocations: 192 / 1.349 GB, free: 12.35 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.388e-05/0.3835, allocations: 42.75 kB / 1.349 GB, free: 12.3 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.102e-05/0.3836, allocations: 16.88 kB / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/0.3837, allocations: 114.4 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/0.3838, allocations: 8.375 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.3838, allocations: 16.38 kB / 1.349 GB, free: 12.12 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.3839, allocations: 65.72 kB / 1.349 GB, free: 12.05 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3839, allocations: 0 / 1.349 GB, free: 12.05 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.384, allocations: 11.98 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.384, allocations: 0 / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.497e-05/0.384, allocations: 16 kB / 1.349 GB, free: 12.02 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.3846, allocations: 339.7 kB / 1.349 GB, free: 11.65 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 6.357e-05/0.3846, allocations: 34.5 kB / 1.349 GB, free: 11.61 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.97e-05/0.3847, allocations: 20.94 kB / 1.349 GB, free: 11.58 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.3847, allocations: 0 / 1.349 GB, free: 11.58 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002209/0.3849, allocations: 99.3 kB / 1.35 GB, free: 11.47 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.3849, allocations: 0 / 1.35 GB, free: 11.47 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0003269/0.3852, allocations: 145.5 kB / 1.35 GB, free: 11.32 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.3853, allocations: 59.39 kB / 1.35 GB, free: 11.25 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.3854, allocations: 133.8 kB / 1.35 GB, free: 11.11 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.613e-05/0.3855, allocations: 41.64 kB / 1.35 GB, free: 11.07 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.654e-05/0.3855, allocations: 92.2 kB / 1.35 GB, free: 10.97 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.479e-05/0.3856, allocations: 23.84 kB / 1.35 GB, free: 10.95 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.3857, allocations: 69.67 kB / 1.35 GB, free: 10.88 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3859, allocations: 318.8 kB / 1.35 GB, free: 10.55 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.3861, allocations: 185 kB / 1.351 GB, free: 10.36 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002863/0.3864, allocations: 223 kB / 1.351 GB, free: 10.1 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.3868, allocations: 245.6 kB / 1.351 GB, free: 9.82 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3868, allocations: 0 / 1.351 GB, free: 9.82 MB / 1.045 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007736/0.3875, allocations: 471.5 kB / 1.351 GB, free: 9.316 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/0.3877, allocations: 106.7 kB / 1.352 GB, free: 9.195 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.3877, allocations: 8.188 kB / 1.352 GB, free: 9.188 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.3877, allocations: 0 / 1.352 GB, free: 9.188 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.475e-05/0.3877, allocations: 4 kB / 1.352 GB, free: 9.184 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.3878, allocations: 7.938 kB / 1.352 GB, free: 9.176 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005128/0.3883, allocations: 79.8 kB / 1.352 GB, free: 9.098 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.908e-05/0.3883, allocations: 19.98 kB / 1.352 GB, free: 9.078 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.000175/0.3885, allocations: 137.8 kB / 1.352 GB, free: 8.934 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/0.3885, allocations: 7.953 kB / 1.352 GB, free: 8.926 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.488e-05/0.3886, allocations: 8.375 kB / 1.352 GB, free: 8.914 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.3886, allocations: 4 kB / 1.352 GB, free: 8.91 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3886, allocations: 0 / 1.352 GB, free: 8.91 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3886, allocations: 0 / 1.352 GB, free: 8.91 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002272/0.3888, allocations: 152.7 kB / 1.352 GB, free: 8.719 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3888, allocations: 0 / 1.352 GB, free: 8.719 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.852e-05/0.3888, allocations: 11.98 kB / 1.352 GB, free: 8.707 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3888, allocations: 7.938 kB / 1.352 GB, free: 8.699 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.3889, allocations: 3.984 kB / 1.352 GB, free: 8.695 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3889, allocations: 0 / 1.352 GB, free: 8.695 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3889, allocations: 0 / 1.352 GB, free: 8.695 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/0.3891, allocations: 157.2 kB / 1.352 GB, free: 8.523 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.3891, allocations: 11.89 kB / 1.352 GB, free: 8.512 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.3891, allocations: 0 / 1.352 GB, free: 8.512 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.205e-05/0.3892, allocations: 0 / 1.352 GB, free: 8.512 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/0.3892, allocations: 11.98 kB / 1.352 GB, free: 8.5 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.3892, allocations: 4 kB / 1.352 GB, free: 8.496 MB / 1.045 GB Notification: Performance of sorting global known variables: time 8.927e-05/0.3893, allocations: 105.9 kB / 1.352 GB, free: 8.395 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3893, allocations: 4 kB / 1.352 GB, free: 8.391 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003033/0.3896, allocations: 47.89 kB / 1.352 GB, free: 8.344 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.000635/0.3903, allocations: 0.6749 MB / 1.353 GB, free: 7.641 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005812/0.3908, allocations: 415.1 kB / 1.353 GB, free: 7.18 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3908, allocations: 0 / 1.353 GB, free: 7.18 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 6.715e-05/0.3909, allocations: 27.98 kB / 1.353 GB, free: 7.152 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.3912, allocations: 25.39 kB / 1.353 GB, free: 7.129 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.3942, allocations: 2.445 MB / 1.356 GB, free: 4.469 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.112e-05/0.3943, allocations: 79.67 kB / 1.356 GB, free: 4.367 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.281e-05/0.3943, allocations: 12.42 kB / 1.356 GB, free: 4.355 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.199e-05/0.3944, allocations: 31.42 kB / 1.356 GB, free: 4.324 MB / 1.045 GB Notification: Performance of SimCode: time 6.91e-07/0.3944, allocations: 0 / 1.356 GB, free: 4.324 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02566/0.4201, allocations: 4.263 MB / 1.36 GB, free: 264 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.85, allocations: 16.98 kB / 1.36 GB, free: 248 kB / 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.84810695098713] Failed to read output from testmodel.py, exit status != 0: 12.014513457077555 12.032984985 11.646812227 Calling exit ...