Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001299/0.001299, allocations: 110.1 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.001419/0.001419, allocations: 219.8 kB / 23.04 MB, free: 5.074 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.259/3.259, allocations: 0.49 GB / 0.7959 GB, free: 33.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_12_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.001975/0.001975, allocations: 60.53 kB / 1.155 GB, free: 25.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.362, allocations: 176.1 MB / 1.327 GB, free: 1.949 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002074/0.364, allocations: 0.6972 MB / 1.327 GB, free: 1.258 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001776/0.3658, allocations: 1.307 MB / 1.329 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.92e-05/0.3659, allocations: 0 / 1.329 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.375e-05/0.3659, allocations: 11.86 kB / 1.329 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.354e-05/0.366, allocations: 19.86 kB / 1.329 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008481/0.3668, allocations: 318.3 kB / 1.329 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003191/0.3671, allocations: 255.6 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.809e-05/0.3672, allocations: 12.17 kB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.3674, allocations: 99.81 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001878/0.3676, allocations: 95.73 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.3676, allocations: 24 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.876e-05/0.3677, allocations: 35.98 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.386e-05/0.3677, allocations: 12 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.3678, allocations: 91.73 kB / 1.33 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.3681, allocations: 223.6 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3681, allocations: 4 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3681, allocations: 0 / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.112e-06/0.3681, allocations: 0 / 1.33 GB, free: 14.77 MB / 1.029 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.0006211/0.3688, allocations: 416.7 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3688, allocations: 12.03 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.419e-05/0.3688, allocations: 4.125 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.102e-05/0.3689, allocations: 38.75 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.576e-05/0.3689, allocations: 12.94 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.369, allocations: 126.4 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.3691, allocations: 8.375 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.388e-05/0.3691, allocations: 16.38 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.3692, allocations: 57.8 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.3692, allocations: 0 / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.3692, allocations: 4 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3692, allocations: 0 / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.822e-05/0.3693, allocations: 23.92 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005509/0.3698, allocations: 391.5 kB / 1.331 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 6.589e-05/0.3699, allocations: 26.58 kB / 1.331 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.988e-05/0.37, allocations: 20.94 kB / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.286e-06/0.37, allocations: 0 / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.3702, allocations: 115.2 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.3702, allocations: 0 / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0003188/0.3705, allocations: 141.5 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.3705, allocations: 55.41 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.3707, allocations: 132.4 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/0.3707, allocations: 33.7 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.684e-05/0.3708, allocations: 96.09 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.3708, allocations: 23.84 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.371, allocations: 65.67 kB / 1.332 GB, free: 12.79 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3711, allocations: 330.8 kB / 1.332 GB, free: 12.46 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/0.3713, allocations: 83.95 kB / 1.332 GB, free: 12.38 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002312/0.3715, allocations: 137.9 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.3718, allocations: 235 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3718, allocations: 0 / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006327/0.3725, allocations: 386.6 kB / 1.333 GB, free: 11.55 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.525e-05/0.3725, allocations: 101.1 kB / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3726, allocations: 0 / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.3726, allocations: 4 kB / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.471e-05/0.3726, allocations: 7.984 kB / 1.333 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.3726, allocations: 0 / 1.333 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004823/0.3731, allocations: 83.83 kB / 1.333 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/0.3731, allocations: 23.98 kB / 1.333 GB, free: 11.31 MB / 1.029 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.0001355/0.3733, allocations: 130.2 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.3733, allocations: 7.953 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.09e-05/0.3733, allocations: 12.36 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3733, allocations: 0 / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.3733, allocations: 4 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3733, allocations: 0 / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.3735, allocations: 164.7 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3735, allocations: 384 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.324e-05/0.3735, allocations: 3.984 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.3735, allocations: 7.984 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.786e-06/0.3735, allocations: 0 / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3735, allocations: 7.938 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3735, allocations: 0 / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002008/0.3737, allocations: 148.9 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.596e-05/0.3737, allocations: 15.89 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.3737, allocations: 0 / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.301e-05/0.3738, allocations: 3.938 kB / 1.333 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.3738, allocations: 11.98 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.3738, allocations: 4 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.251e-05/0.3739, allocations: 95.27 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3739, allocations: 3.938 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002792/0.3742, allocations: 51.92 kB / 1.333 GB, free: 10.58 MB / 1.029 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.000542/0.3747, allocations: 0.6749 MB / 1.334 GB, free: 9.875 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00047/0.3752, allocations: 326.1 kB / 1.334 GB, free: 9.52 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3752, allocations: 0 / 1.334 GB, free: 9.52 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.343e-05/0.3752, allocations: 31.92 kB / 1.334 GB, free: 9.488 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.3755, allocations: 24.67 kB / 1.335 GB, free: 9.465 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.3785, allocations: 2.069 MB / 1.337 GB, free: 7.258 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.3789, allocations: 0.6924 MB / 1.337 GB, free: 6.539 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.724e-05/0.3789, allocations: 16.42 kB / 1.337 GB, free: 6.523 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.823e-05/0.379, allocations: 23.44 kB / 1.337 GB, free: 6.5 MB / 1.029 GB Notification: Performance of SimCode: time 4.81e-07/0.379, allocations: 0 / 1.337 GB, free: 6.5 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02755/0.4065, allocations: 4.007 MB / 1.341 GB, free: 2.668 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.63, allocations: 6.172 kB / 1.341 GB, free: 2.664 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.549006488989107] Failed to read output from testmodel.py, exit status != 0: 11.79421718098456 11.824504576 11.451097494 Calling exit ...