Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.002037/0.002037, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.003154/0.003154, allocations: 215.3 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.563/1.563, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.244/3.244, allocations: 0.5003 GB / 0.8061 GB, free: 26.73 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.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_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.002117/0.002117, allocations: 71.14 kB / 1.171 GB, free: 19.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.3928, allocations: 179 MB / 1.345 GB, free: 404 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00228/0.3951, allocations: 0.7909 MB / 1.346 GB, free: 15.61 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001759/0.3968, allocations: 1.186 MB / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.248e-05/0.3969, allocations: 0 / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.362e-05/0.3969, allocations: 7.938 kB / 1.347 GB, free: 14.4 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.89e-05/0.397, allocations: 15.86 kB / 1.347 GB, free: 14.38 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005348/0.3976, allocations: 134.9 kB / 1.347 GB, free: 14.25 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.3978, allocations: 127.7 kB / 1.348 GB, free: 14.13 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.21e-05/0.3979, allocations: 12 kB / 1.348 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.398, allocations: 55.83 kB / 1.348 GB, free: 14.06 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.3981, allocations: 51.88 kB / 1.348 GB, free: 14.01 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.3981, allocations: 8 kB / 1.348 GB, free: 14 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.651e-05/0.3982, allocations: 31.98 kB / 1.348 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.332e-05/0.3982, allocations: 15.91 kB / 1.348 GB, free: 13.96 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.838e-05/0.3983, allocations: 43.84 kB / 1.348 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.3985, allocations: 127.8 kB / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3985, allocations: 0 / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.093e-06/0.3985, allocations: 0 / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.3986, allocations: 0 / 1.348 GB, free: 13.79 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.0006687/0.3992, allocations: 351.7 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.3993, allocations: 16.03 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.965e-05/0.3993, allocations: 4.172 kB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.321e-05/0.3993, allocations: 30.75 kB / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.09e-05/0.3994, allocations: 16.83 kB / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.3995, allocations: 123.8 kB / 1.348 GB, free: 13.19 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.3995, allocations: 4.375 kB / 1.348 GB, free: 13.18 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.3995, allocations: 4.375 kB / 1.348 GB, free: 13.18 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.3998, allocations: 85.89 kB / 1.349 GB, free: 13.09 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.3998, allocations: 0 / 1.349 GB, free: 13.09 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.3998, allocations: 11.94 kB / 1.349 GB, free: 13.08 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.3998, allocations: 0 / 1.349 GB, free: 13.08 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003112/0.4001, allocations: 67.92 kB / 1.349 GB, free: 13.01 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004749/0.4006, allocations: 295.8 kB / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.4008, allocations: 58.47 kB / 1.349 GB, free: 12.61 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.401, allocations: 44.91 kB / 1.349 GB, free: 12.57 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.401, allocations: 0 / 1.349 GB, free: 12.57 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003634/0.4014, allocations: 103.3 kB / 1.349 GB, free: 12.45 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.4014, allocations: 4 kB / 1.349 GB, free: 12.45 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0006329/0.402, allocations: 165.5 kB / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.4021, allocations: 51.41 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.4022, allocations: 127.3 kB / 1.349 GB, free: 12.08 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.4022, allocations: 29.7 kB / 1.349 GB, free: 12.05 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.078e-05/0.4023, allocations: 96.09 kB / 1.35 GB, free: 11.95 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.4023, allocations: 11.97 kB / 1.35 GB, free: 11.94 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.093e-05/0.4024, allocations: 41.69 kB / 1.35 GB, free: 11.89 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4025, allocations: 314.8 kB / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.4028, allocations: 67.94 kB / 1.35 GB, free: 11.51 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002254/0.403, allocations: 74.53 kB / 1.35 GB, free: 11.43 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003903/0.4034, allocations: 148.1 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.4034, allocations: 4 kB / 1.35 GB, free: 11.26 MB / 1.045 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005785/0.404, allocations: 211.2 kB / 1.35 GB, free: 11.04 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.404e-05/0.404, allocations: 35.42 kB / 1.35 GB, free: 11 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.404, allocations: 0 / 1.35 GB, free: 11 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.404, allocations: 64 / 1.35 GB, free: 11 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.4042, allocations: 27.97 kB / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.4042, allocations: 4 kB / 1.35 GB, free: 10.97 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.4044, allocations: 35.89 kB / 1.35 GB, free: 10.94 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/0.4044, allocations: 7.984 kB / 1.35 GB, free: 10.93 MB / 1.045 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.0001136/0.4046, allocations: 129.7 kB / 1.351 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.799e-05/0.4046, allocations: 11.95 kB / 1.351 GB, free: 10.78 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.4046, allocations: 8.375 kB / 1.351 GB, free: 10.77 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.4046, allocations: 96 / 1.351 GB, free: 10.77 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.4046, allocations: 3.938 kB / 1.351 GB, free: 10.77 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.4046, allocations: 4 kB / 1.351 GB, free: 10.76 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.4048, allocations: 156.6 kB / 1.351 GB, free: 10.57 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.4048, allocations: 7.922 kB / 1.351 GB, free: 10.56 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.4049, allocations: 15.98 kB / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.4049, allocations: 0 / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.4049, allocations: 0 / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.4049, allocations: 4 kB / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4049, allocations: 320 / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004259/0.4053, allocations: 156.9 kB / 1.351 GB, free: 10.37 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.53e-05/0.4053, allocations: 7.953 kB / 1.351 GB, free: 10.36 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.4054, allocations: 0 / 1.351 GB, free: 10.36 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.802e-05/0.4054, allocations: 23.91 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.4055, allocations: 4 kB / 1.351 GB, free: 10.33 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.4055, allocations: 7.984 kB / 1.351 GB, free: 10.32 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.066e-05/0.4056, allocations: 95.27 kB / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4056, allocations: 0 / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002429/0.4058, allocations: 20 kB / 1.351 GB, free: 10.21 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: 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.0008461/0.4066, allocations: 0.6847 MB / 1.352 GB, free: 9.5 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005228/0.4072, allocations: 183.2 kB / 1.352 GB, free: 9.309 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4072, allocations: 0 / 1.352 GB, free: 9.309 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.4074, allocations: 39.95 kB / 1.352 GB, free: 9.27 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.4076, allocations: 19.92 kB / 1.352 GB, free: 9.25 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00255/0.4101, allocations: 1.637 MB / 1.354 GB, free: 7.508 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.4105, allocations: 0.6885 MB / 1.354 GB, free: 6.793 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.417e-05/0.4105, allocations: 4 kB / 1.354 GB, free: 6.789 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.791e-05/0.4106, allocations: 19.44 kB / 1.354 GB, free: 6.773 MB / 1.045 GB Notification: Performance of SimCode: time 1.052e-06/0.4106, allocations: 3.938 kB / 1.354 GB, free: 6.77 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02569/0.4363, allocations: 2.855 MB / 1.357 GB, free: 4.066 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.92, allocations: 9.562 kB / 1.357 GB, free: 4.062 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.937914449954405] Failed to read output from testmodel.py, exit status != 0: 12.088079371955246 12.118636564 11.714518398 Calling exit ...