Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001624/0.001624, 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.001945/0.001945, allocations: 217.9 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.544/1.544, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.172/3.172, allocations: 0.49 GB / 0.7959 GB, free: 33.27 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.Integers.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_12_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.001994/0.001994, allocations: 64.78 kB / 1.155 GB, free: 25.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3605, allocations: 176.1 MB / 1.327 GB, free: 1.844 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002044/0.3626, allocations: 0.8495 MB / 1.327 GB, free: 1 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001721/0.3643, allocations: 1.319 MB / 1.329 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.585e-05/0.3643, allocations: 4 kB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.41e-05/0.3644, allocations: 15.8 kB / 1.329 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.825e-05/0.3645, allocations: 19.75 kB / 1.329 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008155/0.3653, allocations: 327.1 kB / 1.329 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003443/0.3656, allocations: 291.5 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.3657, allocations: 33.61 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.3659, allocations: 111.8 kB / 1.33 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.3661, allocations: 115.7 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.856e-05/0.3661, allocations: 27.94 kB / 1.33 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.785e-05/0.3662, allocations: 39.92 kB / 1.33 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.339e-05/0.3662, allocations: 27.92 kB / 1.33 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.3664, allocations: 103.7 kB / 1.33 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003426/0.3667, allocations: 271.4 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3667, allocations: 0 / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.303e-06/0.3667, allocations: 0 / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.3667, allocations: 0 / 1.33 GB, free: 14.31 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007055/0.3674, allocations: 458.9 kB / 1.331 GB, free: 13.81 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.3675, allocations: 12.03 kB / 1.331 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.558e-05/0.3675, allocations: 4.188 kB / 1.331 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.3675, allocations: 42.73 kB / 1.331 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.894e-05/0.3676, allocations: 24.84 kB / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.3677, allocations: 126.7 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.3678, allocations: 19.98 kB / 1.331 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.759e-05/0.3678, allocations: 16 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/0.368, allocations: 89.61 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.974e-06/0.368, allocations: 0 / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.368, allocations: 11.94 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.368, allocations: 7.984 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.3681, allocations: 45.3 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007143/0.3688, allocations: 467.3 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002733/0.3691, allocations: 62.62 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.523e-05/0.3692, allocations: 24.91 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.275e-05/0.3692, allocations: 11.94 kB / 1.331 GB, free: 12.77 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.3695, allocations: 126.2 kB / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.3695, allocations: 0 / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003737/0.3698, allocations: 165.6 kB / 1.332 GB, free: 12.47 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.3699, allocations: 55.41 kB / 1.332 GB, free: 12.41 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.37, allocations: 172 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.967e-05/0.3701, allocations: 41.7 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.258e-05/0.3702, allocations: 104.1 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.858e-05/0.3702, allocations: 23.84 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.3703, allocations: 73.67 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3705, allocations: 322.8 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.3707, allocations: 95.94 kB / 1.333 GB, free: 11.56 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.3709, allocations: 150.9 kB / 1.333 GB, free: 11.39 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.3713, allocations: 256.8 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3713, allocations: 0 / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006715/0.372, allocations: 415.8 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.464e-05/0.372, allocations: 101.1 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.372, allocations: 0 / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.3721, allocations: 4 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.373e-05/0.3721, allocations: 12 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.3721, allocations: 4 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004791/0.3726, allocations: 87.98 kB / 1.334 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/0.3727, allocations: 23.97 kB / 1.334 GB, free: 10.43 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: 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.0001453/0.3728, allocations: 142.2 kB / 1.334 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/0.3728, allocations: 15.84 kB / 1.334 GB, free: 10.26 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.355e-05/0.3729, allocations: 20.77 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.3729, allocations: 0 / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3729, allocations: 0 / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3729, allocations: 7.984 kB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001958/0.3731, allocations: 188.6 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3731, allocations: 0 / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.267e-05/0.3731, allocations: 8 kB / 1.334 GB, free: 9.992 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.3731, allocations: 7.984 kB / 1.334 GB, free: 9.984 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.3731, allocations: 0 / 1.334 GB, free: 9.984 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3731, allocations: 3.938 kB / 1.334 GB, free: 9.98 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3731, allocations: 4 kB / 1.334 GB, free: 9.977 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002432/0.3734, allocations: 160.9 kB / 1.334 GB, free: 9.801 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.42e-05/0.3734, allocations: 15.91 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.3734, allocations: 4 kB / 1.334 GB, free: 9.781 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.989e-05/0.3735, allocations: 0 / 1.334 GB, free: 9.781 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.55e-05/0.3735, allocations: 15.97 kB / 1.334 GB, free: 9.766 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-06/0.3735, allocations: 4 kB / 1.334 GB, free: 9.762 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.079e-05/0.3736, allocations: 121.4 kB / 1.334 GB, free: 9.645 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3736, allocations: 0 / 1.334 GB, free: 9.645 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002808/0.3739, allocations: 51.94 kB / 1.334 GB, free: 9.594 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: 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.0005935/0.3745, allocations: 0.7124 MB / 1.335 GB, free: 8.855 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005234/0.375, allocations: 346.1 kB / 1.335 GB, free: 8.48 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.375, allocations: 3.938 kB / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.217e-05/0.3751, allocations: 43.98 kB / 1.335 GB, free: 8.434 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.3754, allocations: 23.97 kB / 1.335 GB, free: 8.41 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002971/0.3783, allocations: 2.254 MB / 1.338 GB, free: 6.023 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.3787, allocations: 0.7161 MB / 1.338 GB, free: 5.281 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.76e-05/0.3788, allocations: 8.656 kB / 1.338 GB, free: 5.27 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.727e-05/0.3788, allocations: 35.42 kB / 1.338 GB, free: 5.234 MB / 1.029 GB Notification: Performance of SimCode: time 9.71e-07/0.3788, allocations: 4 kB / 1.338 GB, free: 5.23 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02571/0.4046, allocations: 4.429 MB / 1.343 GB, free: 0.9805 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.92, allocations: 5.953 kB / 1.343 GB, free: 0.9766 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.723565733991563] Failed to read output from testmodel.py, exit status != 0: 12.083950667001773 12.101525661 11.731622459 Calling exit ...