Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.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.001386/0.001386, allocations: 97.92 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.001577/0.001577, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.506/1.506, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.266/3.266, allocations: 0.49 GB / 0.7959 GB, free: 35.46 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.Reals.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_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.001991/0.001991, allocations: 66.83 kB / 1.155 GB, free: 25.41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3591/0.3611, allocations: 176.1 MB / 1.327 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002002/0.3631, allocations: 0.7707 MB / 1.327 GB, free: 0.7422 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001536/0.3646, allocations: 1.17 MB / 1.329 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.413e-05/0.3647, allocations: 0 / 1.329 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.074e-05/0.3647, allocations: 3.938 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.067e-05/0.3648, allocations: 19.86 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004472/0.3652, allocations: 135.6 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001895/0.3654, allocations: 127.8 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.143e-05/0.3655, allocations: 8 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.3656, allocations: 63.81 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.489e-05/0.3657, allocations: 47.83 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.687e-05/0.3657, allocations: 12 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.309e-05/0.3658, allocations: 23.98 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.932e-05/0.3658, allocations: 19.91 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.549e-05/0.3659, allocations: 39.86 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001831/0.3661, allocations: 119.9 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.3661, allocations: 0 / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3661, allocations: 0 / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.3661, allocations: 7.938 kB / 1.329 GB, free: 14.95 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.0006237/0.3667, allocations: 347.8 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3667, allocations: 12.03 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.114e-05/0.3668, allocations: 192 / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.007e-05/0.3668, allocations: 34.75 kB / 1.33 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.435e-05/0.3668, allocations: 12.89 kB / 1.33 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.3669, allocations: 114.4 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.3669, allocations: 8.359 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.367, allocations: 8.359 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002556/0.3672, allocations: 89.94 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3672, allocations: 4 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.3673, allocations: 0 / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.3673, allocations: 0 / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000286/0.3676, allocations: 71.86 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004322/0.368, allocations: 287.7 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.3682, allocations: 50.53 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.3683, allocations: 40.92 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.3683, allocations: 0 / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.3686, allocations: 103.3 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 3.707e-06/0.3686, allocations: 4 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0005739/0.3692, allocations: 161.5 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.3693, allocations: 59.39 kB / 1.33 GB, free: 13.4 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.3694, allocations: 118.1 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.3694, allocations: 25.7 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.233e-05/0.3695, allocations: 100.1 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.3695, allocations: 19.97 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.59e-05/0.3696, allocations: 33.7 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.3697, allocations: 322.8 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002423/0.3699, allocations: 89.64 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002455/0.3702, allocations: 120.1 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.3706, allocations: 140.2 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3706, allocations: 0 / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005816/0.3711, allocations: 245.1 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/0.3712, allocations: 39.25 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3712, allocations: 4.125 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.3712, allocations: 7.938 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.3714, allocations: 19.92 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.3714, allocations: 4 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002265/0.3716, allocations: 39.89 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.526e-05/0.3716, allocations: 11.98 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001087/0.3717, allocations: 122.3 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.163e-05/0.3718, allocations: 7.953 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/0.3718, allocations: 8.375 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.3718, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3718, allocations: 7.984 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3718, allocations: 0 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.3719, allocations: 140.7 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.372, allocations: 0 / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.3721, allocations: 19.97 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3721, allocations: 0 / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.3721, allocations: 8 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3721, allocations: 96 / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.3721, allocations: 3.938 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003912/0.3725, allocations: 156.9 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.086e-05/0.3725, allocations: 3.953 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.3725, allocations: 4 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-05/0.3726, allocations: 15.97 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.745e-05/0.3726, allocations: 8 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.3726, allocations: 7.984 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.795e-05/0.3727, allocations: 90.16 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3727, allocations: 0 / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002366/0.3729, allocations: 27.98 kB / 1.332 GB, free: 11.3 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007763/0.3737, allocations: 0.6943 MB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005013/0.3742, allocations: 205 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3742, allocations: 3.938 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.3744, allocations: 43.95 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002262/0.3746, allocations: 24.05 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.377, allocations: 1.759 MB / 1.335 GB, free: 8.402 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.867e-05/0.3771, allocations: 72.83 kB / 1.335 GB, free: 8.312 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.559e-05/0.3771, allocations: 7.984 kB / 1.335 GB, free: 8.305 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.649e-05/0.3772, allocations: 19.44 kB / 1.335 GB, free: 8.285 MB / 1.029 GB Notification: Performance of SimCode: time 3.9e-07/0.3772, allocations: 0 / 1.335 GB, free: 8.285 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.4007, allocations: 2.992 MB / 1.338 GB, free: 5.465 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.07, allocations: 4.062 kB / 1.338 GB, free: 5.461 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 19.018318064976484] Failed to read output from testmodel.py, exit status != 0: 12.234389556921087 12.259458741 11.888924095 Calling exit ...